ToolLane.online

HTML Escape

Quick answer: HTML Escape turns characters such as the less-than sign, greater-than sign and ampersand into safe HTML entities, so code shows as text instead of running as markup.

HTML escaping means replacing characters that browsers treat as code with safe text codes called entities. Paste HTML or text with angle brackets, ampersands, or quotes into the box and click Escape HTML. The tool turns them into entities, so the text displays safely instead of being read as markup. Pick Unescape to turn entities back into the original characters.

Limit: Max 1,000,000 characters.

How to use HTML Escape

  1. Paste your text or HTML into the box.
  2. Pick Escape HTML to turn special characters into entities, or Unescape HTML to turn them back.
  3. Click Escape / Unescape.
  4. Copy the result, or download it as a text file.

Frequently asked questions

Is HTML Escape free?

Yes, it is free, no sign-up needed.

Which characters are escaped?

Five characters are escaped: the ampersand, the less-than sign, the greater-than sign, the double quote, and the single quote.

What does Unescape do?

It turns escaped entities back into the original characters, so escaped markup becomes real markup again.

Is my text uploaded anywhere?

No. The conversion runs in your browser, so your text stays on your device.

← All tools