HTML Entity Encoder
Encode special characters like <, >, &, and " into HTML entities, or decode HTML entities back to readable text. All processing runs in your browser.
Your files never leave your device
Common entities
| Character | Entity | Description |
|---|---|---|
| & | & | Ampersand |
| < | < | Less than |
| > | > | Greater than |
| " | " | Double quote |
| ' | ' | Apostrophe |
| | Non-breaking space | |
| © | © | Copyright |
| ® | ® | Registered |
| ™ | ™ | Trademark |
| — | — | Em dash |
How to HTML Entity Encoder
- Paste your text into the input area.
- Click "Encode" to convert special characters to HTML entities (<, >, &, ").
- Click "Decode" to convert HTML entities back to their original characters.
- Copy the output with the Copy button.
Why Use This Tool?
HTML encoding is essential for safely displaying user-generated content in web pages and preventing XSS vulnerabilities. This tool handles the conversion instantly without any risk of data leaving your device.