HTML entity encoder and decoder
Convert text so it can be shown inside HTML, or turn entities back into readable characters.
About this tool
What it encodes. The characters & < > " and ' become & < > " and '. You can also turn every non-ASCII character into a numeric entity.
Decoding is text only. Named entities from a built-in list, and numeric ones such as © or €, are replaced with characters. The text is never parsed or run as HTML.
Unknown entities stay as they are. A name that is not in the list, or an invalid number, is left unchanged rather than guessed.
Not full protection. Encoding helps show text safely in HTML, but it does not replace proper escaping for attributes, scripts or URLs in your own code.
Frequently asked questions
Which named entities are supported when decoding?
The common ones: quotes, ampersand, angle brackets, non-breaking space, copyright, euro, dashes, ellipsis and a few more. Numeric entities cover any character.
Why encode non-ASCII characters?
Only for older systems that cannot handle UTF-8. Modern pages should declare UTF-8 and need no such encoding.
Is my text uploaded?
No. Everything runs in your browser.
More free tools
Explore more free tools or see our services.