HTML Entity Encoder / Decoder

Encode or decode HTML entities — named, decimal or hex.

Free HTML entity encoder & decoder. Convert text to named, decimal or hex entities (&, ©) and back, right in your browser. Nothing uploaded.

About HTML Entity Encoder / Decoder

An HTML entity encoder/decoder converts special characters to and from HTML entities — turning characters like &, <, >, and quotes into safe references such as &amp;, &lt;, or &#169;, and back again. Use it to stop markup from breaking your HTML or to read raw entity-laden text. It runs entirely in your browser, so the text you paste is never uploaded — free, no signup, no limits beyond a ~1 MB input cap.

How to use HTML Entity Encoder / Decoder

  1. Pick a direction with the Encode / Decode toggle.
  2. For encoding, choose a scope: 'Only special' (just & < > and both quotes) or 'All non-ASCII' (also accented letters, symbols, and emoji).
  3. For encoding, choose an output format: Named (e.g. &amp;), Numeric decimal (&#169;), or Hex (&#xA9;).
  4. Type or paste your text into the Input box — the conversion updates live as you type.
  5. Read the result in the Output pane, with live counts for input length, output length, and entities converted.
  6. Copy the output, select part of it to copy a fragment, or click Download to save it as encoded.txt or decoded.txt.

Frequently asked questions

Is it free, and do I need an account?
Yes, it is completely free with no signup, login, or limits beyond a ~1 MB input size. Just open the page and start typing.
Is my text uploaded to a server?
No. Encoding and decoding run entirely in your browser using local JavaScript — nothing you paste leaves your device, and there are no network requests for the conversion.
What entity formats does it support?
Encoding produces named entities (like &amp; and &copy;), numeric decimal references (&#169;), or hex references (&#xA9;). Decoding accepts all of these forms, including the browser-recognized HTML5 named entities.
What's the difference between 'Only special' and 'All non-ASCII'?
'Only special' encodes just the five HTML-significant characters: & < > and both single and double quotes. 'All non-ASCII' additionally encodes every character above code point 127 — accents, symbols, dashes, and emoji.
Why did some characters become numeric references in Named mode?
The tool ships a curated table of common named entities. When a character has no named entry, it falls back to a numeric reference (e.g. &#233; for é) and shows a notice. Switch to Numeric or Hex for a single consistent format.
How accurate is the decoding?
Decoding uses the browser's own HTML5 parser as the source of truth, so named and numeric references resolve exactly as a real web page would. Malformed or out-of-range references (above U+10FFFF) are left as-is and not counted as decoded.

People also search for

HTML Entity Encoder / Decoder is also known as html entities list, html to entities, encode html entities, decode html entities, escape html characters, html entity converter, unescape html.