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 & or é back into their original characters.
All tools/Encoding
HTML Entity Encoder & Decoder
Convert special characters to and from HTML entities. Runs entirely in your browser.
Output
How this works & FAQ
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 (&) and numeric entities (&) are supported when decoding.