HTML Escape / Unescape
Escape or unescape HTML entities live as you type: & < > and quotes become safe references, with an optional numeric mode for non-ASCII characters.
This tool runs entirely in your browser. Your data never leaves your device — it is not uploaded to any server.
How to use
- 1Paste HTML or escaped text into the input box.
- 2Pick Escape or Unescape; both run live as you type.
- 3Enable numeric entities if you need non-ASCII output like é.
- 4Copy the result — the char-count readout shows how much it grew or shrank.
HTML Escape / Unescape
Encode the five characters that break HTML — ampersand, angle brackets and both quote styles — into their named entities, or paste entities back into readable text. A second toggle switches accented and non-Latin characters to numeric references like é, useful for legacy systems and email templates.
Both directions run live in one panel, and the readout shows exactly how the character count changed, so a broken double-escape is visible at a glance.
Frequently asked questions
Why is the single quote escaped as ' instead of '?
' is valid in XML and HTML5 but was never part of HTML 4, so some older parsers and email clients mishandle it. The numeric ' is safe everywhere.
Do I need to escape non-ASCII characters?
In UTF-8 documents, usually no — browsers handle é directly. Numeric entities matter for legacy encodings, email pipelines or systems that mangle non-ASCII bytes.
Which named entities does unescaping recognize?
About 70 common ones — markup (&, <, >, ", '), punctuation (—, …, “), Latin accents and symbols (©, €) — plus every decimal and hexadecimal numeric reference.
Related tools
HTML Formatter
Turn minified or one-line HTML into clean, indented markup — a simple, reliable beautifier for emails, templates and saved pages. 100% client-side.
All tools →
HTML Minifier
Minify HTML in your browser: strip comments and collapse whitespace to cut page weight — a conservative cleaner that keeps your markup and rendering intact.
All tools →
URL Encoder
Percent-encode URLs and query strings online — choose component encoding or full URI encoding, with live output for links, parameters and path segments.
All tools →
URL Decoder
Decode percent-encoded URLs back into readable text — %20, %2F and query-string values become clear instantly. Handles + as space, fully in your browser.
All tools →
Embed this tool
Put this tool on your own site with one line — it runs entirely in the visitor's browser.
<iframe src="https://zoyku.com/en/tools/html-escape?embed=1" width="100%" height="640" style="border:0;border-radius:16px" title="Zoyku — html-escape" loading="lazy"></iframe>