Tools
Dev & Design
HTML Entity Encoder & Decoder
Encode special characters to HTML entities or decode them back. Named, decimal, and hex formats.
Format:
Entity reference
| Character | Named | Decimal | Hex |
|---|---|---|---|
| & | & | & | & |
| < | < | < | < |
| > | > | > | > |
| " | " | " | " |
| ' | ' | ' | ' |
| NBSP | |   |   |
| © | © | © | © |
| ® | ® | ® | ® |
| ™ | ™ | ™ | ™ |
| € | € | € | € |
| £ | £ | £ | £ |
| ¥ | ¥ | ¥ | ¥ |
| — | — | — | — |
| – | – | – | – |
| … | … | … | … |
| • | • | • | • |
| → | → | → | → |
| ← | ← | ← | ← |
| ↑ | ↑ | ↑ | ↑ |
| ↓ | ↓ | ↓ | ↓ |
| × | × | × | × |
| ÷ | ÷ | ÷ | ÷ |
| ± | ± | ± | ± |
| ° | ° | ° | ° |
| ½ | ½ | ½ | ½ |
| ¼ | ¼ | ¼ | ¼ |
| ¾ | ¾ | ¾ | ¾ |
| § | § | § | § |
| ¶ | ¶ | ¶ | ¶ |
| † | † | † | † |
How it works
Encoding converts special characters into safe HTML representations. Decoding reverses the process — useful when reading escaped HTML from APIs or databases.
Sanitize user input
Safely embed user text into HTML
Email templates
Some email clients need encoded entities
XML payloads
Encode reserved chars before embedding in XML
Decode API responses
Unescape HTML from CMS APIs
Prevent XSS
Encode before injecting into the DOM
Copy-paste from docs
Clean up auto-encoded content from Word/Google Docs
Debug encoding bugs
See exactly what your encoder is outputting