🏷 HTML Entity Encoder / Decoder
Encode text to safe HTML entities or decode entities back to readable text. Supports named entities (& < >), numeric decimal, and numeric hex notation. Includes a searchable reference table of 200+ named entities.
Named Entity Reference
| Char | Named | Decimal | Hex | Description |
|---|
HTML Entity Encoder & Decoder — Online Free Tool
HTML entities are special codes used to display reserved characters in HTML without being interpreted as markup. The five essential entities are: & (&), < (<), > (>), " ("), and ' (').
When to Use HTML Entities
Always encode user-supplied content before inserting it into HTML to prevent Cross-Site Scripting (XSS) attacks. Encode the five special characters at minimum. This tool's "Minimal" mode does exactly that and is appropriate for most template escaping use cases.
Named vs Numeric Entities
Named entities like © (©) and — (—) are easier to read. Numeric entities like © or © work in any HTML version. Both forms are recognized by all modern browsers.