HTML Escape / Unescape

Escape and unescape HTML entities instantly.

Runs in your browser — your data never leaves your device

Frequently Asked Questions

What is HTML escaping?

HTML escaping converts special characters like <, >, &, ", and ' into their HTML entity equivalents (&lt;, &gt;, &amp;, &quot;, &#39;) so they can be safely displayed in HTML without being interpreted as markup.

Why do I need to escape HTML?

Escaping prevents XSS attacks and rendering bugs when user input is displayed in web pages. It ensures characters like < and & are shown as text rather than parsed as HTML tags or entities.

What characters are escaped?

The tool escapes the five critical HTML characters: & (ampersand), < (less-than), > (greater-than), " (double quote), and ' (apostrophe). It also handles non-breaking spaces, smart quotes, em dashes, and other common typographic entities.

What is HTML unescaping?

Unescaping reverses the process — it converts HTML entities like &lt; and &amp; back into their original characters, making encoded text readable again.

Is this tool free?

Yes, ToolDock's HTML escape tool is completely free, requires no signup, and runs entirely in your browser.