HTML Entity Encoder
Escape HTML special characters for safe pasting into pages and emails.
How to use this tool
- Paste your text or HTML.
- Choose encode or decode.
- Copy the result.
How it works
The five core entities (< > & " ') map to named entities with hex variants available; decoding reverses the mapping.
Tips
- Encode code samples before embedding in WordPress-style editors.
- Encode user-generated input before displaying for safety.
Limitations
Named entity depth is limited to the common set — rare entities pass through literally.
Frequently asked questions
Why escape HTML?
So angle brackets and ampersands display literally instead of being parsed as markup — vital in blogs and docs.
Which characters are escaped?
<, >, &, double and single quotes, plus the non-breaking space option, by default.
Can I decode summaries back?
Yes — the decode direction restores entities into their characters.