HTML Entity Encoder & Decoder — Escape HTML Online
Encode special characters to HTML entities (&, <, ') or decode entity sequences back to plain text. Essential for XSS prevention, templating, and web development — processed entirely in your browser.
Your data never leaves your browser
Plain text / HTML
HTML entities
About this tool
Encode & decodeNamed entitiesNumeric entitiesEncode all optionPrivate
How to use
- Choose Encode or Decode mode.
- Paste HTML or text with entities in the input panel.
- Copy the escaped or unescaped output.
Examples
Escape angle brackets
<div>Hello</div>
<div>Hello</div>