Lodash _.deburr() Method

Beginner
5 min read
Updated: Nov 2026
5 examples
String

Definition

Deburrs string by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks. Part of Lodash String (since 3.0.0).

Pass the string and options shown below. Check the return type before you chain another helper.

Syntax

Call _.deburr. Start with this line.

Lodash
_.deburr([string=''])
CallWhat it does
_.deburr([string=''])Primary signature.
_.deburr(string)Transform or inspect a string.

Prefer import deburr from "lodash/deburr" when you want a smaller bundle.

Library declarations
Lodash
_.deburr([string=''])

Parameters

ParameterDescription
stringOptional. Input to deburr; default ''

Return Value

Return ValueDescription
*New deburred string

Lodash Examples

Example 1 — Official déjà vu

Strip accents from a common phrase.

Lodash
_.deburr("déjà vu");
// → "deja vu"
Try It Yourself

How It Works

  1. Input. Contains accented Latin letters.
  2. Map. é → e, à → a.
  3. Result. Basic Latin deja vu.
  4. Docs. Matches the official Lodash example.

Example 2 — More Accented Words

Common labels with diacritics.

Lodash
[
  _.deburr("café"),
  _.deburr("Ångström"),
  _.deburr("naïve")
];
// → ["cafe", "Angstrom", "naive"]
Try It Yourself

How It Works

  1. café. é → e.
  2. Ångström. Extended Latin letters map to A / o.
  3. naïve. Diaeresis removed → naive.
  4. Point. Letter identity stays; marks go away.

Example 4 — Already Plain Latin

Strings without accents stay the same.

Lodash
_.deburr("hello world");
// → "hello world"
Try It Yourself

How It Works

  1. No marks. Nothing to convert or remove.
  2. Return. Same characters (new string value).
  3. Safe. Fine to run on every query string.
  4. Idempotent. Deburring twice does not change further.

Example 5 — Empty / Default

Omitted or empty input returns an empty string.

Lodash
[
  _.deburr(),
  _.deburr("")
];
// → ["", ""]
Try It Yourself

How It Works

  1. Default. Parameter defaults to ''.
  2. Empty. Nothing to replace → "".
  3. Safe. No throw on missing input.
  4. App tip. Still guard UI if empty should show a fallback.

Browser & Runtime Support

_.deburr is a Lodash String helper (since 3.0.0). It uses Lodash’s own Latin / combining-mark tables — no special browser Unicode APIs required beyond loading Lodash.

✓ Stable · Lodash 3.0.0+

_.deburr()

Available in [email protected] full builds and the lodash/deburr modular import. Works in evergreen browsers and Node / Bun / Deno when Lodash is installed.

100% With Lodash 3.0.0+
Google Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Bun Supported · JavaScript runtime
Supported
Deno Supported · JavaScript runtime
Supported
Node.js Supported · Server runtime
Supported
Android WebView Supported · Modern WebView
Full support
_.deburr Lodash 3.0.0+

Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import deburr from "lodash/deburr" for smaller builds.

Frequently Asked Questions

_.deburr([string='']) converts Latin-1 Supplement and Latin Extended-A letters to basic Latin and removes combining diacritical marks. Official docs: _.deburr('déjà vu') → 'deja vu'.
No. Deburr only strips accents/diacritics. Use _.escape() to encode HTML special characters like < and &.
So café and cafe match after normalization. Pair with _.toLower() for case-insensitive search.
No. Strings are immutable. _.deburr always returns a new string.
It targets Latin-1 Supplement, Latin Extended-A, and combining marks — not every writing system. Non-Latin scripts may be unchanged.
Use import deburr from "lodash/deburr" or require("lodash/deburr") for tree-shaking.

Next: _.endsWith()

Check whether a string ends with a given target.

_.endsWith() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

6 people found this page helpful