Home
Tom Utilities

HTML Escape & Unescape

HTML, CSS & JavaScript

Escape text for safe HTML output or decode HTML entities back to readable characters.

Input

Result

How to use

Escaping HTML entities

Press Encode to escape angle brackets and ampersands, or Decode to turn entities back into characters.

  1. Paste text or markup.
  2. Press Encode or Decode.
  3. Copy the converted result.

Frequently asked questions

Can escaping protect against XSS?

Escaping is one layer of defence. Always escape output on the server as well.

Are numeric entities supported?

Yes, decode understands named, decimal and hexadecimal entities.