ToolsCandy

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

  1. Choose Encode or Decode mode.
  2. Paste HTML or text with entities in the input panel.
  3. Copy the escaped or unescaped output.

Examples

Escape angle brackets

<div>Hello</div>
&lt;div&gt;Hello&lt;/div&gt;

FAQ