# HTML Entity Encoder / Decoder

encode · decode · swap · named entities

Convert special characters to HTML entities (< > & etc.) or decode them back. Useful for sanitizing HTML or reading escaped content.

INPUT
OUTPUT

FAQ

Which characters are encoded?

The encoder converts & < > " ' and non-ASCII characters (above codepoint 127) to their HTML entity equivalents. This covers the most common XSS-sensitive characters.

Does it handle named entities like &nbsp;?

Yes. The decoder handles both named entities (like &nbsp; &lt; &copy;) and numeric entities (&#60; &#x3C;) by leveraging the browser's native HTML parser.