HTML Encoder and Decoder
Escape text to HTML entities or decode them back — special characters only, or every non-ASCII character.
Stays on your device. This tool runs in your browser — nothing you paste or open ever leaves it. Nothing uploaded, nothing to leak.
Common HTML entities
& ampersand non-breaking space< less-than> greater-than" double quote' apostrophe© copyright— em dashWhy escape HTML at all
If you drop raw text containing a less-than sign or an ampersand into a page, the browser may treat it as a tag or a broken entity — and unescaped user input is the classic cross-site-scripting hole. Encoding those characters keeps your content displaying exactly as written and your pages safe. Decoding is the reverse, for reading entity-laden text.