All tools/Encoding

HTML Entity Encoder & Decoder

Convert special characters to and from HTML entities. Runs entirely in your browser.

How this works & FAQ

Encode converts & < > " ' and other non-ASCII characters into safe HTML entities, so text can be embedded in HTML without breaking markup. Decode converts entities like &amp; or &#233; back into their original characters.

Why encode text before putting it in HTML?

Without encoding, characters like < and & in user content can be misinterpreted as markup, breaking the page or creating an XSS risk.

Does this handle numeric entities?

Yes, both named entities (&amp;) and numeric entities (&#38;) are supported when decoding.