HTML entities
Escaped so it shows, or decoded so you can read it.
Output
Paste or type above to see the result here.
Your files stay on your device
This tool runs entirely in your browser. What you paste is processed on your device and is never sent to a server, so it is safe to use with tokens, keys and unpublished text.
How it works
- Paste the text.
- Escaping handles the five that have to be escaped: & < > " and '.
- Turn on “everything outside ASCII” if the page’s encoding is not to be trusted.
- Switch direction to decode entities back into characters.
Frequently asked questions
- Which characters actually have to be escaped?
- Five: & < > " and '. Everything else is optional in a UTF-8 document, and escaping more than you need makes the source harder to read and the file larger.
- When would I escape the rest anyway?
- When the file’s encoding is out of your hands — an email template, a CMS field, something going through a system that may mangle UTF-8. Then é survives where é might not.
- Does decoding understand numeric entities?
- Yes: é and é both come back as é, alongside the named ones.
- Why is ' escaped as ' rather than '?
- Because ' is not in HTML 4 and old parsers do not know it, while ' works everywhere. It is the safer of the two.
- Is anything sent to a server?
- No. It runs in your browser, so what you paste stays on your computer.
Related tools
‹› HTML formatter Indented so you can read it, or squeezed so you can ship it. ⛓ URL encoder / decoder Percent-encoding both ways, worked out as you type. ∿ Base64 Convert text to Base64 and back, with correct UTF-8 handling and an optional URL-safe alphabet. 字 Converters Convert text encoding Fix a CSV that opens garbled, or save one in the encoding a system asks for. Detected automatically, converted in your browser.