HTML Entity Encode / Decode
Convert text to safe HTML entities or decode entities back to Unicode in your browser. Supports every WHATWG named reference plus numeric forms, strict or permissive decoding, optional non-ASCII encoding, and Web Worker offload for inputs above 500KB.
HTML Entity Encode / Decode Use Cases
- Escape user-generated snippets before inserting them into HTML templates
- Decode entities from scraped or exported HTML for readable plain text
- Normalize quotes, ampersands, and symbols for CMS or email markup
- Verify strict parsing rules when validating HTML fragments or test fixtures
HTML Entity Encode / Decode FAQ
Is my text sent to a server?
No. All encoding and decoding runs locally in your browser. Your input never leaves your device.
What is the difference between strict and permissive decode?
Permissive mode leaves unknown or malformed references untouched so you can process mixed or partial snippets. Strict mode stops with an error when a reference is incomplete or not recognized.
Which named entities are supported?
Decoding uses the full WHATWG HTML named character reference list (over 2,100 names) plus decimal and hexadecimal numeric references.
Can this handle very large documents?
Yes. Inputs larger than 500KB are processed in a Web Worker so the tab stays responsive.