99+ Free Tools
← Back to all tools

HTML Encoder / Decoder

Safely encode HTML entities and decode them back — named entities, decimal and hexadecimal numeric references included. Invalid references are flagged, never silently dropped. Everything happens in your browser; nothing is uploaded or stored.

HTML code on a computer screen
Only standard HTML entities are supported; custom entities are out of scope.

Encode or decode

Result

Enter some HTML or code and press Encode / Decode.

How this tool works

Encode. The five essentials are & → &amp;, < → &lt;, > → &gt;, " → &quot; and ' → &#39;. With the wider scope, every non-ASCII character also becomes a numeric reference, so é becomes &#233;.

Decode. Named entities (&amp; &lt; &copy; &euro; and more), decimal references (&#65; = A) and hexadecimal references (&#x41; = A) are all decoded. A reference that is not a standard entity — an unknown name, or a number outside the valid Unicode range — is flagged with its position.

Privacy. Calculation happens entirely in your browser. Nothing is uploaded, stored or shared.

Limits. Only standard HTML entities are supported; custom entities are out of scope.