HTML Encoder / Decoder — Entities Escape & Unescape

Escape HTML for safe display, or decode entities back to characters — the swap button flips direction.

Quick answer: Free HTML encoder/decoder: escape <, >, &, quotes to entities and back — instant, bidirectional, offline.

How to use

  1. Paste HTML or entities.
  2. Convert live; swap to decode.
  3. Copy the output.

About this tool

Show code samples on webpages without breaking them, or decode 'messy' exports — both directions, one swap button.

FAQ

Which entities?
& < > " ' plus numeric entities on decode.
XSS relevance?
Escaping user input before display is core XSS defence — use this before embedding.
Bidirectional?
Yes — the swap button flips encode/decode.
Unicode safe?
Yes — only the five dangerous characters are touched on encode.
Bulk content?
Paste whole files — runs locally.
Offline?
Yes.