HTML Entity Encoder & Decoder
Escape or unescape HTML entities (<, &, ', numeric & hex) safely without executing scripts.
Runs on your deviceHTML, Text → HTML, Text
How to use
- 01.
Paste raw HTML or entity-encoded text into the input panel.
- 02.
Select Encode (Minimal, Named, or Numeric) or Decode mode.
- 03.
Review the instant XSS-safe result and copy it with one click.
Pure string decoding with zero DOM injection
Decoding uses an explicit parser table and code-point decoder rather than assigning to innerHTML, so pasted script payloads never execute.
Limits & privacy
- Runs 100% locally with zero network transmission.
Frequently asked questions
What is the difference between Minimal and Numeric encoding?
Minimal escapes only &, <, >, ", and ', while Numeric also converts non-ASCII Unicode characters into &#codepoint; entities.