Encode / decode HTML entities

Turn the special characters in a text into HTML entities, or decode existing entities to recover the original text.

Example:

How it works

As soon as you insert text containing special characters — a product title with quotation marks, a user comment with "<" or "&" signs, a sentence with accents — directly into HTML code, these characters risk being interpreted as tags or breaking the page's display. Encoding this text as HTML entities (&amp;, &eacute;, etc.) lets you safely include it in a web page while guaranteeing it will display correctly.

Which characters are affected by the encoding?

Characters that have a special meaning in HTML (&, <, >, single and double quotes) as well as common accented characters from French and other European languages (é, è, ê, à, ç, ñ, etc.) are converted to their corresponding named entity. Other characters remain unchanged.

Does decoding also work with numeric entities?

Yes. In addition to named entities (such as &eacute;), decoding also recognizes decimal (&#233;) and hexadecimal (&#xE9;) numeric entities, which are another standard way of representing a character in HTML.

100% local processing in your browser (WebAssembly) — nothing is sent to a server.