Encode & secure

HTML Entities

Escape and unescape HTML entities safely.

Runs locally Free No signup

A working example is preloaded — edit it or clear it.

HTML entities converterHTML5

What this tool does

HTML entities let you display characters that would otherwise be interpreted as markup. Encoding &, <, >, quotes and non-ASCII characters prevents broken output and injection bugs. Decoding turns &amp;, &#233; and named entities back into readable text. This is a text utility, not a full HTML sanitizer.

How to use it

  1. Choose encode or decode.
  2. Pick minimal escaping or all non-ASCII.
  3. Copy the result or swap it back.

Questions

Is escaping enough to prevent XSS?

Not always. Context matters: HTML text, attributes, URLs and JavaScript need different escaping. Use a reputable sanitizer for rich HTML.

Named vs numeric entities?

Named entities use mnemonics such as &amp; or &euro;; numeric entities use decimal or hex code points. Browsers understand both.

Does it alter emoji?

In all mode, emoji become numeric entities; decoding restores them exactly.

← Back to all tools
Type to filter, ↑↓ to move, ↵ to open, esc to close.esc