HTML Entity Encoder/Decoder

Encode special characters to HTML entities (&, <, >) and decode back. All in your browser.

What is this tool?

How do I encode HTML entities? Encode text to HTML entities (e.g. &amp; &lt;) or decode entities back to characters. Prevents XSS and displays special characters correctly in HTML.