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.
Encode or decode
Enter some HTML or code.
Result
Enter some HTML or code and press Encode / Decode.
How this tool works
Encode. The five essentials are & → &, < → <, > → >, " → " and ' → '. With the wider scope, every non-ASCII character also becomes a numeric reference, so é becomes é.
Decode. Named entities (& < © € and more), decimal references (A = A) and hexadecimal references (A = 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.