Conversion runs live in your browser and your text is not uploaded. Use Special chars when you only need safe HTML text, Named entities for readable references like ©, or numeric modes when you need decimal or hex code points.
HTML Entity Encoder Decoder
Runs entirely in your browser - no upload, no sign-up.
What is an HTML entity encoder decoder?
An HTML entity encoder decoder converts characters between readable text and HTML character references such as <, ©, © and 🌍. Use it to escape markup-sensitive characters before pasting text into HTML, or decode entities from source code back into normal text.
How to use
- 1Pick Encode or Decode. Choose Encode to turn text into HTML entities, or Decode to turn entity references back into readable characters.
- 2Choose an encode mode. Use Special chars for safe HTML text, Named entities for readable names, or Decimal and Hex for numeric code-point references.
- 3Paste your text. The result updates live in the output panel. Decode mode handles named, decimal and hexadecimal references together.
- 4Copy the result. Copy the encoded or decoded text and paste it into your HTML, template, email or documentation.
Who it's for
- Web developers escaping snippets that contain angle brackets, ampersands, quotes or apostrophes before showing them as text.
- Content editors decoding CMS or email template copy where symbols appear as
&, or©. - QA and support teams checking whether a broken page contains raw markup or already-escaped entity references.
- Documentation writers preparing examples that show HTML tags without the browser treating them as real markup.
FAQ
Is this HTML entity encoder decoder free?
Yes. The HTML entity encoder decoder is free to use, with no sign-up, no download and no usage limit. Paste text, choose a mode and copy the result from your browser.
Is my text uploaded anywhere?
No. Encoding and decoding happen locally in your browser. The text you paste into the widget is not sent to a server, which is useful for private templates, source snippets and support tickets.
What characters should I encode for safe HTML?
At minimum, escape ampersand, less-than, greater-than and quotes when text is inserted into HTML or an attribute. Those characters can start markup, entities or attribute boundaries. Encoding every non-ASCII character is optional on modern UTF-8 pages.
What is the difference between named, decimal and hex entities?
Named entities use readable labels such as <code>&copy;</code>. Decimal numeric references use base-10 code points such as <code>&#169;</code>. Hex references use base-16 code points such as <code>&#xa9;</code>. Browsers decode all three forms.
Does the decoder support emoji and non-English text?
Yes. Numeric references can represent any valid Unicode code point, including emoji and non-Latin scripts. For example, <code>&#x1f30d;</code> decodes to the globe emoji, and named entities such as <code>&eacute;</code> decode to accented letters.
Will decoded HTML run as real markup?
No. The decoded result is shown inside a plain textarea, so tags remain text in the tool. If you copy the decoded output into an HTML document, the browser will then treat real tags as markup.
Why did a double-escaped ampersand decode only once?
<code>&amp;</code> is the entity for a literal ampersand. Decoding it once gives <code>&</code>. If a string was encoded multiple times, you may need to decode more than once, but do that only when you know the source is double-escaped.