Convert between raw text and HTML entities for safe markup rendering and content workflows.
Ready
Mode
Escape
Input chars
0
Output chars
0
Use HTML escaping when showing literal markup in templates, docs, or logs.
Unescape mode is useful when cleaning encoded snippets from exports and APIs.
Escape HTML when rendering user-provided text in markup contexts to avoid accidental tag interpretation.
Yes. Switch to unescape mode to convert entities like ampersand, less-than, and quote codes into text.
Yes. It supports multiline text and preserves line breaks in output.
Use this HTML escape tool when text has to appear literally on a page, such as a code example in a doc or user-provided text in a template.
Unescape mode reverses entity-encoded strings from exports, API responses, or old databases, and it knows the full set of HTML named entities because the browser decodes them.
Input
<a href="/x?a=1&b=2">Tom's café</a>
Output
<a href="/x?a=1&b=2">Tom's café</a>
Escape mode. The é is left as it is, since it is not one of the five characters. Pasted into an HTML page, this displays as the original text instead of creating a link. Run Unescape on the output to get the input back.