Encode reserved/unicode characters to HTML entities and back.
Your vote is saved on this device only.
The HTML Entity Encoder / Decoder converts reserved and Unicode characters into HTML entities and turns them back into plain text. Paste text and encode characters like &, <, >, ", and ' into their safe entity equivalents, optionally converting every non-ASCII character to a numeric entity. Run it in reverse to decode named, decimal, and hexadecimal entities back into readable characters. It also shows a live count of how many entities are present.
It is built for web developers, technical writers, and anyone preparing snippets for HTML, templates, or CMS fields where raw symbols would break markup or trigger injection. The tool is completely free and runs entirely in your browser, so the text you paste never leaves your device and nothing is uploaded to a server.
Encoding always escapes the five reserved characters: &, <, >, double quote, and single quote. With the non-ASCII option enabled, every character outside the ASCII range is also converted to a numeric entity such as é.
Yes. Decoding handles named entities like &, decimal numeric entities like é, and hexadecimal numeric entities like é, returning the original characters.
Leaving non-ASCII as-is keeps accented and Unicode letters readable, which is fine for UTF-8 pages. Encoding them as numeric entities guarantees the output is pure ASCII, useful for systems with limited character support.
No. All encoding and decoding happen locally in your browser, so your input stays on your device and is never sent to any server. The tool is free to use.
It uses the numeric entity ' because ' is not a recognized named entity in older HTML, while ' is universally supported across HTML and XHTML.