HTML Entity Encoder
Runs in your browser — your data is never uploaded.
Escape text for safe inclusion in HTML — converting <, >, & and quote characters to their named entities. An “encode everything” mode also numeric-encodes every non-ASCII character, useful for legacy-encoding-safe output. Runs entirely in your browser.
0 characters · runs entirely in your browser
How to use HTML Entity Encoder
- 1
Paste or type your text into the box.
- 2
Choose basic escaping or “encode all non-ASCII”.
- 3
Click “Encode”, then copy or download the result.
Share
Embed this tool on your site
Paste this where you want the tool to appear. It runs entirely in your visitor's browser — no uploads, no account, no tracking.
Please keep the attribution line — it's what keeps these tools free.
Need a different size, a dark theme, or a different tool? Build an embed lets you preview it first.
Frequently asked questions
Which characters does “basic” mode escape?+
The five characters that are unsafe to leave raw in HTML: < > & " and ' — encoded as &lt;, &gt;, &amp;, &quot; and &#39; respectively.
What does “encode all” do differently?+
In addition to the basic five, every character above code point 127 (accents, symbols, emoji, non-Latin scripts) is also converted to a numeric character reference like &#233;.
Is my text uploaded anywhere?+
No. Encoding runs entirely in your browser — nothing is sent to a server.