HTML Entity Encode/Decode
Escape and unescape HTML entities.
Runs in your browser: what you paste is never uploaded
How to use HTML Entity Encode/Decode
- 1Paste or type your inputUse the box above, or click Sample to try it with an example.
- 2Choose your optionsChoose Encode or Decode, and whether to escape only the special characters or every non-ASCII character too.
- 3Copy the resultCopy it with one click. Nothing is sent anywhere.
About HTML Entity Encode/Decode
Escape characters like < > & and quotes as HTML entities, or decode named and numeric entities back to text.
Frequently asked questions
Which characters must be escaped in HTML?
< and & in text, plus quotes inside attribute values. Escaping them prevents broken markup and injection.
Are named entities like and é supported?
Yes, as well as numeric ones like é and é.
Is what I paste sent anywhere?
No. The tool runs entirely in your browser and never sends what you type or paste to a server.
Is it free?
Yes. It's free, with no sign-up and no limits.
Related tools
- Base64 String Encode/DecodeEncode text to Base64 or decode it back.
- URL Encode/DecodePercent-encode text for URLs, or decode it.
- Base64 Image Encode/DecodeTurn images into data URIs and back.
- Backslash Escape/UnescapeEscape and unescape backslash sequences.
- JSON FormatterFormat, validate and minify JSON.
- HTML Beautify/MinifyPretty-print or minify HTML.