HTML Escape / Unescape
Convert special characters to HTML entities or decode them back in one click.
Input
Runs in your browser
Tip: escape user input before rendering HTML.
Output
Privacy note: escaping happens locally in your browser.
What HTML escaping is
HTML escaping converts characters like <, >, &, and quotes into entities so they display as text instead of being parsed as HTML.
When to use it
Use it when rendering user input, showing code snippets, or building safe templates. Escaping helps prevent layout issues and XSS.
Escape vs. unescape
Escaping turns text into entities like & and <. Unescaping reverses entities back to readable characters.
How to escape or unescape HTML
Paste your text and choose Escape or Unescape.
- Paste HTML or text into the input box.
- Choose Escape or Unescape.
- Copy the output when ready.
FAQ
Does this tool upload my data?
No. Everything runs locally in your browser.
Is this the same as URL encoding?
No. HTML escaping targets HTML entities, not URL parameters.
What characters are escaped?
At minimum: &, <, >, and quotes.