Skip to content
Developer tools

HTML Encoder/Decoder

Escape and unescape HTML entities — named and numeric.

How it works

  1. 1Pick Encode or Decode.
  2. 2Paste your content.
  3. 3Copy the safe / decoded output.

Use cases

  • Sanitize user-generated HTML before display
  • Debug entity-laden output from a server
  • Prepare snippets for documentation

Frequently asked questions

Does this prevent XSS?

Encoding the five entities is a necessary but not sufficient step. Always sanitize on the server before storing.

See all →