Web Tools
HTML Entity Converter
Encode special characters to HTML entities (named, decimal, or hex) and decode them back. Handles common symbols, non-ASCII characters, and round-trips perfectly. Runs entirely in your browser — your data never leaves your machine.
html entity encoder decoder escape special-characters developer-tools
Published May 28, 2026
All interactive tools run entirely in your browser. Your data never leaves your device.
How It Works
Paste text to encode special characters into HTML entities, or paste encoded HTML to decode entities back to readable text. Choose between named (&), decimal (&), or hexadecimal (&) encoding formats. The swap button lets you quickly toggle between input and output.
Features
- Three formats: Named, Decimal, and Hexadecimal entity encoding
- Bidirectional: encode plain text or decode HTML entities
- Smart encoding: only encodes characters that need it (HTML specials + non-ASCII)
- Swap: one-click swap between encoded and decoded views
- Character count: shows how many characters will be encoded
- Private: runs entirely in the browser — no network requests
Common Entities
| Character | Named | Decimal | Hex |
|---|---|---|---|
& | & | & | & |
< | < | < | < |
> | > | > | > |
" | " | " | " |
© | © | © | © |
™ | ™ | ™ | ™ |
Use Cases
- Escaping HTML for safe display in web pages
- Preparing content for email templates
- Debugging encoded characters in API responses
- Converting special characters for XML/HTML documents