Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>HMTL Special Character ConverterNew to Visual Studio Code? Get it now.
HMTL Special Character Converter

HMTL Special Character Converter

Zachary-Ratliff

|
2,121 installs
| (2) | Free
Converts un-encoded HTML symbols to the corresponding HTML-entity codes
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Convert All HMTL Special Characters README

Features

A simple extension that adds a command "Convert All HMTL Special Characters" to the command pallete, which converts HTML symbols and special characters into their HTML-entity name or number counterparts.

You can also run this command by clicking the "ñ" button in the bottom right of your VScode Status Bar.

A tilde-n button in the bottom right of the VScode status bar

E.g. Running "Convert All HMTL Special Characters" replaces:

'º' with '°' '½' with '½' á with 'á'

Full list:

'º': '\°',
'½': '\½',
'„': '\„',
'“': '\“',
'”': '\”',
'«': '\«',
'»': '\»',
'‹': '\‹',
'›': '\›',
'‘': '\‘',
'’': '\’',
'á': '\á',
'é': '\é',
'í': '\í',
'ó': '\ó',
'ñ': '\ñ',
'ú': '\ú',
'ü': '\ü',
'Á': '\Á',
'É': '\É',
'Í': '\Í',
'Ó': '\Ó',
'Ñ': '\Ñ',
'Ú': '\Ú',
'Ü': '\Ü',
'¡': '\¡',
'¿': '\¿',
'Ä': '\Ä',
'Ö': '\Ö',
'ä': '\ä',
'ö': '\ö',
'ß': '\ß',
'č': '\č',
'ď': '\ď',
'ě': '\ě',
'ň': '\ň',
'ř': '\ř',
'š': '\š',
'ť': '\ť',
'ů': '\ů',
'ý': '\ý',
'ń': '\ń',
'ž': '\ž',
'Č': '\Č',
'Ď': '\Ď',
'Ě': '\Ě',
'Ň': '\Ň',
'Ř': '\Ř',
'Š': '\Š',
'Ť': '\Ť',
'Ů': '\Ů',
'Ý': '\Ý',
'Ž': '\Ž',
'à': '\à',
'è': '\è',
'ì': '\ì',
'ò': '\ò',
'ù': '\ù',
'À': '\À',
'È': '\È',
'Ì': '\Ì',
'Ò': '\Ò',
'Ù': '\Ù',
'ç': '\ç',
'Ç': '\Ç',
'â': '\â',
'ê': '\ê',
'Â': '\Â',
'Ê': '\Ê',
'ã': '\ã',
'õ': '\õ',
'Ã': '\Ã',
'Õ': '\Õ',
'ï': '\ï',
'Ï': '\Ï',
'ª': '\ª',
'î': '\î',
'ô': '\ô',
'û': '\û',
'Î': '\Î',
'Ô': '\Ô',
'Û': '\Û',
'ë': '\ë',
'ÿ': '\ÿ',
'Ë': '\Ë',
'Ÿ': '\Ÿ',
'œ': '\œ',
'Œ': '\Œ',
'ł': 'ł',
'ż': 'ż',
'ć': 'ć',
'ę': 'ę',
'ą': 'ą',
'ś': 'ś',
'ź': 'ź'

From version 2.0 the extension supports adding your own replacements, and even overriding existing ones. To do this, you can edit the settings.json file (found in the .vscode directory of your project) and add an object with property name of htmlcharacterconverter.overrides. For example, if you wanted to add a replacement for ", and also override the built-in replacement for á:

{
    // other user scope vscode settings... ,
    "htmlcharacterconverter.overrides": {
        "\"": """,
        "á": "á"
    }
}

Any suggestions or feedback? I'd love to hear: bobeatspie123@gmail.com

Release Notes

1.0.0

Initial release

1.1.0

Changed name to "HTML special character converter" Added status bar button Updated README added ń (ń) support

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft