Replace Accents: Easy Way to Remove and Restore Diacritics

Diacritics are a daily reality for copywriters, content editors, and developers who work in languages like Hungarian, Czech, German, Spanish, or Polish. Many tools around you still assume English-only ASCII, which breaks URLs, filenames, identifiers, and legacy exports. You often end up searching for a quick fix like Replace Accents and copy text into random web tools.

Replace Accents, the Visual Studio Code extension, keeps this work inside the editor. It removes and restores diacritics with Unicode-safe normalization, language-aware mappings, and smart dictionaries, so you handle multilingual text without leaving VS Code.

TL;DR

  • Replace Accents is a free Visual Studio Code extension that removes and restores diacritics directly in VS Code.
  • Works on text selections, entire documents, and file or folder names in VS Code Explorer.
  • Uses Unicode NFKD normalization-decomposes characters into base letters plus combining marks, then removes only the marks. Emojis and other symbols stay untouched.
  • Language-specific ASCII mappings handle German äae, ßss, and other conventions.
  • Smart diacritic restoration uses per-language dictionaries ordered by frequency, with optional suffix matching for inflected languages.
  • Localized into 17 languages including English, Hungarian, Slovak, Czech, German, French, Spanish, Japanese, Korean, Russian, and Simplified/Traditional Chinese.

Diacritics, Unicode, and Real-World Text Problems in VS Code

Multilingual text looks simple until it travels through ASCII-only pipelines and legacy systems. Diacritics disappear, URLs break, filenames cause errors, and manual fixes turn into a recurring time sink.

Common Pain Points with Diacritics and ASCII-Only Systems

Most teams see the same problems repeat across content, code, and data exports:

  • ASCII-only backends and exports: Older databases, flat file integrations, and legacy APIs accept only ASCII, so č, ű, å, ñ vanish or turn into broken characters.
  • Unsafe URLs and slugs: CMS or custom routing layers accept non-ASCII characters, but downstream tools, CDNs, or logs do not-forcing you to create ASCII-only slugs.
  • Manual accent removal: You copy text into browser converters, online slug generators, or one-off scripts, then paste results back into VS Code.
  • Text typed without diacritics: Someone writes "cafe", "donde esta", "szep zold haz" for speed, and you must restore correct spelling before publishing or translating.
  • Mixed Unicode data: Emojis, combining marks, and mixed scripts confuse naive replacements, stripping more than diacritics and corrupting content.

Why a Visual Studio Code Extension Is the Right Place to Fix Accents

You can solve diacritic problems with scripts, command-line tools, or web utilities, but each extra tool increases friction. A Visual Studio Code extension keeps accent handling close to the content and code you edit every day.

  • Run accent removal or restoration from the Command Palette or a keyboard shortcut.
  • Apply rules to selections, whole files, or multiple files inside the VS Code workspace.
  • Store configuration in project-level settings so new team members get the same behavior.
  • Keep sensitive content inside the editor instead of pasting text into random web tools.

Meet Replace Accents

Replace Accents is a dedicated Visual Studio Code extension focused on diacritics. Search for “Replace Accents” in the VS Code extension view to install it.

At its core, the extension provides two high-level actions:

  • Remove accents: Converts accented text to ASCII-compatible text using Unicode-based normalization and language-specific mappings.
  • Restore accents: Restores diacritics in plain Latin text using per-language dictionaries and optional suffix matching.

You can use these actions on text, filenames, and folder names from inside VS Code.

What Replace Accents Does Under the Hood

The extension translates Unicode know-how into simple commands that work across many languages:

  • Normalizes text with Unicode NFKD, which decomposes letters and diacritics.
  • Strips combining diacritical marks while leaving base characters and emojis intact.
  • Applies language-specific ASCII mappings such as ä to ae and ß to ss.
  • Restores diacritics using frequency-ordered word lists for each supported language.
  • Supports optional suffix matching for stems plus inflected endings.
  • Lets you define custom mappings and ignore lists for project or brand rules.
  • Works on text selections, full documents, and file or folder names in VS Code Explorer.

Core Features

Unicode-Based Diacritic Removal That Is Safe for Emoji

Many simple “remove accents” utilities treat characters as single bytes and guess replacements. Replace Accents uses Unicode NFKD normalization, which decomposes characters into base letters plus combining marks, then removes only the marks.

For example, á becomes a plus a combining acute accent that the extension strips, leaving a. The same logic applies to ő, ć, or ñ, but emojis and other symbols stay untouched. “café ☕” turns into “cafe ☕” and “naïve résumé” becomes “naive resume” without affecting emoji or multibyte characters.

This matters whenever you:

  • Prepare data for ASCII-only systems and APIs.
  • Build accent-insensitive search indexes where "cafe" should match "café".
  • Export content to older databases that cannot handle full Unicode.
  • Generate identifiers or keys from human-readable titles.

Language-Specific ASCII Mappings for German, Nordic, and Central European Text

After normalization, Replace Accents can apply language-specific ASCII foldings where conventions exist. This keeps text readable even when you must restrict yourself to pure ASCII.

LanguageExample InputASCII Output
Germangrößerer Überblickgroesserer ueberblick
GermanStraßeStrasse
Nordicåaa
Spanishñn

These mappings are ideal when you generate SEO slugs, filenames, or identifiers that must be ASCII but still understandable to native speakers.

Smart Diacritic Restoration with Dictionaries and Suffix Matching

Restoring accents is harder than removing them. Replace Accents tackles this by using per-language word lists that cover words with at least one non-ASCII character. Each list is ordered by frequency, so common words are preferred when several candidates exist.

When you run accent restoration, the extension scans each word in your text, checks the chosen dictionary, and replaces plain Latin forms with likely accented variants. If suffix matching is enabled, it can combine stems and endings, which helps in highly inflected languages.

Realistic examples:

InputDictionaryOutput
"edenyemet"Hungarian"edényemet"
"szep zold haz"Hungarian"szép zöld ház"
"stredni skola"Czech"střední škola"
"cafe con leche"Spanish"café con leche"

You still review changes, but the extension performs the heavy lifting and lets you correct edge cases manually.

Custom Character Mappings for Brands and Project Rules

Every project has its own quirks. Brand names, product lines, and internal identifiers often follow rules that generic mappings cannot predict. Replace Accents lets you define custom character mappings that run after normalization and built-in logic.

Typical uses:

  • Map œ to oe for a specific brand guideline.
  • Force ł to l or lt based on how your company writes Polish names in ASCII.
  • Handle rare characters from legacy systems that you always want to collapse to a known form.

Store these mappings in user or workspace settings. Workspace settings travel with your repository, so everyone on the team gets the same behavior for the same project.

Batch Processing and Keyboard Shortcuts in Daily Work

Replace Accents is designed for daily use, not just one-time migrations. It provides commands for selections, active documents, and multiple files or folders selected in VS Code Explorer.

You can bind comfortable keyboard shortcuts:

  • One shortcut to remove diacritics from the current selection.
  • Another shortcut to restore accents in the selected language.
  • Commands bound to Explorer context menus for renaming files and folders.

Over time this becomes muscle memory.

Real Workflows

Generate SEO Slugs from Accented Titles with Dev Toolbox

For URL slugs you have a dedicated helper: the Dev Toolbox extension includes a built-in slug generator that handles diacritics and separators for you.

  1. Write the title with correct diacritics in markdown or HTML.
  2. Select the title text and run the Dev Toolbox command that generates a URL slug (slugify).
  3. Dev Toolbox removes diacritics, normalizes whitespace, and replaces separators with hyphens.
  4. Paste the finished slug into the slug or URL field in your front matter or router config.

You keep the accented title for readers and get a stable, ASCII-safe slug that follows the same rules every time.

Note: You can install Dev Toolbox from the Visual Studio Code Marketplace alongside Replace Accents for a complete text manipulation workflow.

Normalize Filenames and Assets for Static Sites and Pipelines

Non-ASCII filenames can break static site generators, build tools, or deployment environments. Replace Accents can rename files and folders directly from the VS Code Explorer.

Typical flow:

  1. Select image or content folders that contain accented filenames.
  2. Trigger the Rename command from Replace Accents in the Explorer context menu.
  3. Review the preview of name changes and confirm.
  4. Commit the changes as part of a migration or cleanup branch.

A file like “őszi-képek/legyelő-szarvas.jpg” becomes “oszi-kepek/legyelo-szarvas.jpg”, which is simpler for tools that assume ASCII-only paths.

Fix Imported Data and Legacy Exports with Stripped Diacritics

Many systems store or export content without accents, especially older ERPs and CSV-based integrations. Replace Accents lets you restore diacritics before that data hits the public website or documentation.

  1. Open the CSV, JSON, or text export in VS Code.
  2. Select the columns or blocks of text that should contain accents.
  3. Choose the correct language dictionary and run the restore command.
  4. Spot check results and adjust or rerun on smaller selections if needed.

Language Support and Configuration

Focused Language Dictionaries Where Accents Matter

The extension includes word lists for many European languages. Each list contains only words that include at least one non-ASCII character, keeping lookups fast and focused exactly on diacritics.

LanguageDictionary
HungarianMagyar
CzechČeština
SlovakSlovenčina
GermanDeutsch
PolishPolski
SpanishEspañol
FrenchFrançais
SwedishSvenska
DanishDansk

Localized UI for Multilingual Teams

Replace Accents is localized into 17 languages: English, Hungarian, Slovak, Czech, German, French, Polish, Bulgarian, Spanish, Italian, Japanese, Korean, Brazilian Portuguese, Russian, Turkish, Simplified Chinese, and Traditional Chinese.

For distributed teams, this means developers and content editors can read prompts, messages, and configuration labels in their own language.

Key Settings You Should Tune First

A few settings have a big impact on results:

SettingPurpose
Custom character mappingsAdd overrides for special characters, brand names, or project conventions
Dictionary selectionChoose the default language for diacritic restoration per workspace
Suffix matching behaviorEnable for narrative text in inflected languages; disable for short product names
Ignore listAdd words that should never change (brand names, product codes, technical acronyms)

Store these settings in workspace configuration so everyone on the project gets the same behavior.

Known Limitations

Restoration Accuracy

Diacritic restoration uses frequency-ordered word lists. While this works well for most common words, rare or proper nouns may not be restored correctly. Always review the output, especially for names, brand terms, or specialized vocabulary.

File Operation Safety

When renaming files and folders, Replace Accents provides a preview before applying changes. Review this preview carefully-file operations are not reversible through the extension.

Key Takeaways

  1. Replace Accents is free and focused. It handles diacritics using Unicode-safe normalization, not naive character replacement.
  2. Works on text and filenames. Use it on selections, entire documents, or files and folders in VS Code Explorer.
  3. Language-specific ASCII mappings handle German äae, ßss, and other conventions.
  4. Smart restoration uses per-language dictionaries with frequency ordering and optional suffix matching.
  5. Customizable mappings let you enforce brand-specific character handling.
  6. Localized into 17 languages for international teams.
  7. Works alongside Dev Toolbox. Use Replace Accents for diacritic control and Dev Toolbox for the full slug generation workflow.

Conclusion

Handling diacritics and Unicode manually inside VS Code costs time and creates inconsistent results across files and projects. Replace Accents centralizes this work in one Visual Studio Code extension that can remove accents safely, restore them intelligently, and normalize filenames for ASCII-constrained systems.

If you often need Replace Accents for slugs, exports, and legacy systems, or you fix unaccented text from colleagues on a regular basis, install Replace Accents from the Visual Studio Marketplace. It is free, focused on multilingual diacritics, and designed to fit copywriters, content editors, and developers who want fast, reliable, and repeatable text workflows.

Need help with your development workflow? Playful Sparkle has been engineering digital products since 2004, offering Web Development, App Development, and UI/UX & Web Design services. Our team builds custom tools and extensions that streamline development processes and improve team productivity. Contact us to discuss how we can help you build better workflows and tools for your team.

Was this helpful - Post
Zsolt Oroszlány

Zsolt Oroszlány

Founder & Chief Creative Officer of Playful Sparkle since 2004, combining business leadership, digital strategy, design, and software engineering to help organizations build effective digital solutions. Regularly publishes insights on web development, SEO, design, and emerging technologies.