Skip to content
19 10240119 Tools

Free browser tool

HTML Escape Unescape

Escape HTML special characters or unescape common HTML entities in browser text, with samples, warnings, copy, and clear controls.

Updated 2026-05-12

Ready to escape HTML-sensitive characters.

Escaping text is not the same as sanitizing untrusted HTML.

Conversion mode

How to use this tool

  1. Paste or type your input into the tool.
  2. Choose the action or option that matches your task.
  3. Review the output before copying it into another app.

Notes

Convert HTML-sensitive characters into entities, decode common entities back to readable text, compare output length, and copy the result for docs or examples.

Inputs are processed in the browser for this static MVP. Avoid pasting secrets into any online tool unless you understand the environment.

FAQ

What characters are escaped?

The tool escapes ampersands, angle brackets, double quotes, and apostrophes into common entities that are safe to show as text in HTML examples.

Is escaping the same as sanitizing HTML?

No. Escaping text is useful for display, but sanitizing untrusted HTML requires a dedicated, context-aware sanitizer that understands allowed tags and attributes.

When should I unescape entities?

Unescape entities when copied text needs to become readable again, such as turning < and & back into angle brackets and ampersands for review.

Can the tool decode every named HTML entity?

No. It handles common entities used in everyday snippets. For a full HTML parser workflow, test the output in the environment where it will be used.