# 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 ?
Yes. The decoder handles both named entities (like < ©) and numeric entities (< <) by leveraging the browser's native HTML parser.