HTML Entity Encoder & Decoder

Encode special characters to HTML entities or decode them back. Supports named and numeric entities. 🔤 Free

Common HTML Entities Reference

CharNamedNumericDescription
What are HTML entities?

HTML entities are special codes used to represent characters that have special meaning in HTML, or characters that aren't easily typed. For example, < represents < (less-than sign) and &amp; represents & (ampersand). They prevent browsers from misinterpreting your content as HTML tags.

Named vs numeric entities — what's the difference?

Named entities use descriptive names like &amp; (ampersand) or &copy; (copyright). Numeric entities use the character's Unicode code point, either decimal (&#38;) or hex (&#x26;). Named entities are more readable; numeric entities work for any Unicode character even if no named entity exists.

When do I need to encode HTML entities?

You need entities when inserting user-generated content into HTML (to prevent XSS attacks), when displaying code snippets, when embedding special symbols like copyright © or trademark ™, and when your text contains characters like <, >, or & that browsers would interpret as HTML.