HTML Entity Encoder & Decoder — free, in your browser
Escape or unescape HTML special characters instantly — no uploads, no sign-up.
This tool runs entirely in your browser. Your files are never uploaded — they stay on your device.
Whenever you put text into HTML, characters like <, >, &, " and ' can break your markup or open the door to injection bugs. Encoding them as HTML entities keeps your content safe and displaying exactly as intended. This tool converts text both ways: escape plain text into entities, or decode entities back into readable characters.
Everything runs entirely in your browser — nothing you type is sent anywhere. Paste your text, flip between Encode and Decode, and copy the result with a single click.
How to use HTML Entity Encoder
- Choose a mode: Encode to escape characters, or Decode to convert entities back to text.
- Paste or type your text into the input box.
- The converted result appears instantly on the right.
- Click Copy to put the result on your clipboard.
Frequently asked questions
Which characters does the encoder escape?
It escapes the five characters that matter for HTML: & becomes &, < becomes <, > becomes >, " becomes " and ' becomes '. The ampersand is always encoded first so existing entities are not double-escaped incorrectly.
What entities can it decode?
It decodes the common named entities (such as &, <, >, ", ' and ) as well as numeric entities in both decimal (©) and hexadecimal (©) form.
Is my text uploaded to a server?
No. All encoding and decoding happens locally in your browser using JavaScript. Nothing you type is ever uploaded, stored or seen by anyone.
Do I need to install anything or create an account?
No. It works in any modern browser with no installation, no account and no cost.