Encoding unsafe characters
Encode "Tom & Jerry's \"show\"" to get "Tom & Jerry's "show"", with all 5 HTML-unsafe characters escaped.
Encode and decode HTML entities online to escape special characters safely — free tool.
About
Escapes the characters unsafe for HTML into named entities, or decodes entities back into plain characters.
Developers use it to make sure user-submitted text doesn't accidentally break page markup or open an XSS hole, while content editors use it to clean up text copied from a CMS that's full of stray entities like & and  . It's one of Toolapt's free data tools — no account needed, and no cap on how many times you use it.
Examples
3 worked examples
Encode "Tom & Jerry's \"show\"" to get "Tom & Jerry's "show"", with all 5 HTML-unsafe characters escaped.
Decode "Café & Bar" to get back "Café & Bar", with both the named and numeric entities resolved.
With "Encode all non-ASCII characters too" turned on, encoding "Café" produces "Café" — the é is converted into a numeric entity as well.
FAQ
Quick answers to common questions about the HTML Entity Encoder and Decoder.
It escapes text so it's safe to place inside HTML, or reverses HTML entities back into plain characters.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. Encoding and decoding happen entirely on your own device — nothing you paste is sent to a server.
The five characters that have special meaning in HTML: & becomes &, < becomes <, > becomes >, " becomes ", and ' becomes '.
It additionally converts every character above the basic ASCII range (accented letters, symbols, emoji, and so on) into a numeric entity like &#233; , which is useful when a downstream system only handles plain ASCII text reliably.
The tool lets the browser's own HTML parser interpret the entities and reads back the resulting text, so both named entities (like &) and numeric entities (like ') are handled correctly.
Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.
It's built for typical text and markup snippets. There's no artificial length limit, though very large inputs may take a moment longer.
Did HTML Entity Encoder and Decoder work for you?