HTML Entity Encoder/Decoder

Convert special characters to HTML entities and decode HTML entities back to text.

Input
Output
Common HTML Entities
Character Named Decimal Hex Description
About HTML Entities
What are HTML Entities?

HTML entities are special codes used to display reserved characters (<, >, &) and special symbols in HTML.

When to Use

Use encoding when displaying user input in HTML to prevent XSS attacks, or when you need to show HTML code as text.

Entity Formats

Named: &name; (readable)
Decimal: &#code;
Hex: &#xcode; (compact)