HTML Escape and Unescape

Free. No sign-up. Your input is processed in your browser.

Convert characters to entities and back.

How to use it

  1. Choose Escape or Unescape.
  2. Paste your text.
  3. Copy the result.

Where escaping applies

The result suits HTML text and quoted attribute values. JavaScript, CSS and URLs need their own encoding, so this is not a complete defence against script injection.

Questions

Which characters are escaped?

&, <, >, double quotes and single quotes.

Is pasted HTML run?

No. It stays text.

Related tools

See all tools