HTML Entity Encoder & Decoder
Encode special characters to HTML entities or decode entities back to characters. Real-time results.
0 characters
0 characters
Common HTML Entities
| Entity | Character | Description |
|---|---|---|
| & | & | Ampersand |
| < | < | Less than |
| > | > | Greater than |
| " | " | Double quote |
| ' | ' | Apostrophe |
| | Non-breaking space | |
| © | © | Copyright |
| ® | ® | Registered |
| ™ | ™ | Trademark |
| € | € | Euro sign |
| £ | £ | Pound sign |
| ¥ | ¥ | Yen sign |
| — | — | Em dash |
| – | – | En dash |
| « | « | Left guillemet |
| » | » | Right guillemet |
Why encode HTML?
HTML entities prevent browsers from interpreting characters like <, > and & as markup. This avoids rendering issues and protects against XSS injection attacks.
Named vs numeric
Named entities like & are human-readable. Numeric entities like & work for any Unicode character and are useful when a named form does not exist.
Non-ASCII encoding
Enable "Encode all non-ASCII" to convert accented letters, symbols and emoji to numeric HTML entities. Useful for ensuring compatibility across all character encodings.