AUTOESCAPE / HTML

HTML Escape

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

AE—01 / ESCAPE WORKBENCHLocal processing

HTML escape / unescape

Turn reserved characters into HTML entities, or bring them back.

Escapes &, <, >, double and single quotes.
01 / SOURCE
0 characters · 0 bytes300k limit
02 / OUTPUT
0 characters · 0 bytesRead-only

Ready when you are. Conversion happens as you type.

HTML: show the characters, not the markup.

HTML uses angle brackets to identify tags and an ampersand to begin a character reference. If you want to display a tag as an example rather than have the browser interpret it, those characters need another representation.

HTML Escape converts five characters: &, <, >, the double quote and the single quote. For example, an opening angle bracket becomes &lt;. The escaped text still describes the same characters, but it can be read as text in the appropriate HTML context.

A real example

BEFORE / INPUT
<span title="Tom & Jerry">5 < 10</span>
AFTER / OUTPUT
&lt;span title=&quot;Tom &amp; Jerry&quot;&gt;5 &lt; 10&lt;/span&gt;

This is useful when you are writing documentation, showing a markup sample, or preparing plain text for an HTML text context. Copy the escaped result into the intended destination; the workbench itself does not render your input as HTML.

When to use Unescape

If a snippet contains &lt; and &amp;, Unescape turns those entity references back into their characters. This decoder handles semicolon-terminated named and numeric entities, including decimal and hexadecimal numeric references. Entity-like text that is not recognized is left as-is.

Decoding is one pass, not a repeated cleanup loop. If your input is &amp;lt;, one pass produces &lt;, not an opening angle bracket. That distinction matters when something has already been escaped twice.

Where this tool stopsHTML escaping is not HTML sanitization. It does not remove unwanted tags, validate a link or make JavaScript safe. The output is intended for HTML text or properly quoted attribute contexts—not script blocks, CSS, unquoted attributes or URL validation.

A mistake worth avoiding

Do not escape the same text again just because the output looks unfamiliar. Escaping & once gives &amp;. Escaping that output again gives &amp;amp;. Keep an original copy and apply the conversion at the point where your destination actually needs it.

Need another format?

Return to the directory to choose a different tool.

All Tools →   Explore Guides →