Skip to content

HTML Entity Encoder & Decoder

Escape text for HTML (< & ") or decode HTML entities back to characters.

Mode

é → é — for systems that only accept ASCII

Runs in your browser — nothing you enter is sent to a server.

How the HTML Entity Encoder & Decoder works

Encode replaces the five characters that have a meaning in HTML — &, <, >, " and ' — with entities, so text shows as text instead of being read as markup. Tick the option to also write every non-ASCII character as a numeric reference.

Decode turns entities back into characters: numeric ones (&#233;, &#xE9;) and the HTML named entities such as &eacute;, &nbsp; and &mdash;.

Formula

&#decimal; or &#xhex; — the character's Unicode code point

é is U+00E9: &#233; or &#xE9;.

Examples

Showing HTML as text

<b>Tom & Jerry</b> → &lt;b&gt;Tom &amp; Jerry&lt;/b&gt;

Decoding

&copy; 2026 &mdash; caf&eacute; → © 2026 — café

Frequently asked questions

Do I need to encode é or emoji?

Not on a page saved as UTF-8, which almost every page is. Encode them only for systems that accept ASCII alone, such as some email or XML tools.

Why encode quotes?

Inside an attribute like title="…", an unescaped quote ends the attribute early — and can let injected code in.

What happens to entities it doesn't know?

They're left exactly as written and listed below the result.

URL Encoder & Decoder

Percent-encode text for URLs and query strings, or decode %20-style encoded text back to readable text.

Developer Tools

Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 to text, with full Unicode support and URL-safe output.

Developer Tools

CSS Minifier

Minify CSS to make it smaller, or beautify minified CSS to make it readable.

Developer Tools