New Check out our newest tool: Pwned Password Check

HTML Entity Encoder & Decoder

Characters like < and & have special meaning in HTML, so to show them on a page they have to be written as entities like &lt; and &amp;. Encode text to paste safely into HTML, or decode entities to read the plain text.

Looking up one character? Unicode Search shows any character's name, code point, and its HTML, CSS, and JavaScript escapes. Open Unicode Search →
Which characters need encoding

Only five characters really must be encoded in HTML text: & < > and the two kinds of quotes inside attributes. That's the default, and it's what protects a page when it shows text people typed, so nobody can slip in their own HTML.

Every special character is useful when a file or email system might mangle accents and symbols, because entities use plain ASCII only. Modern pages saved as UTF-8 don't need it.

Named entities like &copy; are easier to read; numeric ones like &#169; work for any character, including emoji. Decoding understands all three forms. Everything runs in your browser.

Need a different tool?
Browse the full set — lookups, converters, and checkers, all free.
View all tools