TheOmniTool logoTheOmniTool
Developer

HTML Escape / Unescape

Escape or unescape HTML entities.

<a href="https://example.com">Link & more</a>

About HTML Escape / Unescape

Escape and unescape HTML special characters so text displays correctly instead of breaking your markup. Characters like <, >, and & have structural meaning in HTML, and to show them as literal text you must replace them with entities such as &lt; and &amp;. This tool converts in both directions, letting you escape a snippet before dropping it into a page or unescape entity-encoded content to read it plainly. It is essential when displaying code samples, preventing markup injection, or debugging content. Everything is processed locally in your browser with nothing uploaded, and the tool is completely free to use with no signup.

How to use this tool

  1. 1Paste your text or HTML.
  2. 2Choose Escape or Unescape.
  3. 3Copy the converted result.

Frequently asked questions

Which characters are escaped?

& < > " and ' are converted to their entity forms (&amp;, &lt;, &gt;, &quot;, &#39;).

When do I need to escape HTML?

Whenever you display user input or code samples inside an HTML page, so the browser shows the text instead of interpreting it.

Related tools