HTML Entities Encoder/Decoder
Paste text to encode it as HTML entities or paste encoded HTML to decode it back to readable characters.
Mode
Encoding scope
Output format
Input
Encoded Output
Summary
Paste text to encode it as HTML entities or paste encoded HTML to decode it back to readable characters.
How it works
- Paste or type your text into the Input box.
- Choose a mode: Encode to convert characters to entities, or Decode to convert entities back to characters.
- Select which characters to encode (All special characters, Reserved only, Non-ASCII, or All printable).
- Pick an output format: Named entities, Numeric decimal, or Hex.
- Click Encode or Decode to process, then copy or download the result.
Use cases
- Safely embedding user-supplied text inside HTML pages to prevent XSS
- Encoding email HTML templates that must survive aggressive spam filters
- Decoding HTML source snippets to read the actual text content
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu