HTML Entity Encoder / Decoder
Developer
Escape text safely for use in HTML, or recover the original text from an entity-encoded string. Pick between minimal escaping (only the dangerous five — & < > " ') and full escaping of every non-ASCII character, and choose named (&), decimal (&), or hex (&) entity output. Decoding accepts all three forms in one pass.
—
Output
<div class="hello">Tom & Jerry — "café" © 2026</div>
How to use
- Pick Encode or Decode.
- For encoding, choose minimal vs all non-ASCII, and named / decimal / hex.
- Paste your text — the result updates as you type.
- Swap reuses the output as the next input.
Frequently asked questions
- When should I use 'minimal' vs 'all non-ASCII'?
- Minimal is right for almost every HTML context — UTF-8 pages render é, 한, 中 etc. directly, so only the five characters that confuse the HTML parser need to be escaped. Use 'all non-ASCII' when the destination must stay in pure ASCII (e.g., legacy email templates).
- Named vs numeric entities — which is best?
- Named entities (©) are easier to read, decimal (©) and hex (©) work for any code point even if no name exists. All three decode the same.
- Does decoding handle &#xNN; and &#NN;?
- Yes. The decoder accepts named, decimal, and hex forms in a single pass.
- Are emoji and supplementary characters supported?
- Yes — encoding uses code points, so characters outside the BMP (😀, 𝕏, etc.) encode and decode correctly.
Related tools
JWT Decoder
Decode a JSON Web Token to inspect its header, claims, and expiration.
Developer00
UUID Generator
Generate random version-4 UUIDs in bulk, with copy.
Developer00
Hash Generator (SHA)
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text.
Developer00
URL Encoder / Decoder
Percent-encode text for URLs, or decode encoded URLs back to text.
Developer00
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text, instantly.
Developer00
JSON Formatter & Validator
Format, beautify, minify, and validate JSON right in your browser.
Developer00