ToolsetDaily
Web & Dev

HTML Escape / Unescape

Convert reserved characters to HTML entities, or decode entities back to text.

Web & Dev
Copied

Escape and unescape HTML entities

HTML treats characters like the angle brackets and ampersand as special, so to show them as literal text on a page you convert them into entity codes. This tool escapes raw text into safe entity form, or decodes entities back into the original characters. It is what you need when pasting a code snippet into a page so the tags display instead of running.

How to escape HTML online

Paste your text or code, click Escape to turn special characters into entities or Unescape to turn them back, and copy the result.

Frequently asked questions

Is this the same as URL encoding?

No. HTML entity escaping and URL percent-encoding are different systems for different jobs. This tool handles HTML escaping only.

Will escaping break my indentation?

No. Only the reserved characters change. Whitespace, line breaks and indentation stay exactly as they were.