HTML Entity Encoder/Decoder Online
Encode and decode HTML entities in named, decimal, or hex format.
Processed locally in your browserFormat:
Encode:
Type to encode →
← Type to decode
Common HTML Entities Reference▾
| Char | Named | Decimal | Hex |
|---|---|---|---|
| & | & | & | & |
| < | < | < | < |
| > | > | > | > |
| " | " | " | " |
| ' | ' | ' | ' |
| © | © | © | © |
| ® | ® | ® | ® |
| ™ | ™ | ™ | ™ |
| € | € | € | € |
| £ | £ | £ | £ |
| — | — | — | — |
| … | … | … | … |
Unlock the full toolkit
Batch processing, no ads, higher limits, and API access.
Features
- ✓Real-time bidirectional encode/decode
- ✓Named, decimal, and hex entity formats
- ✓Encode all characters or special only
- ✓Handles mixed entity formats in input
- ✓No data sent to server
Frequently Asked Questions
- What are HTML entities?
- HTML entities are special codes used to represent characters that have special meaning in HTML or are not available on a standard keyboard. For example, < represents the < symbol, & represents &, and © represents ©. They prevent browsers from interpreting characters as HTML code.
- When should I encode HTML entities?
- You should encode HTML entities when displaying user-generated content on a web page to prevent XSS (cross-site scripting) attacks. The five critical characters to always encode are: < > & " ' (less than, greater than, ampersand, double quote, single quote).
- What is the difference between named, decimal, and hex entities?
- Named entities use descriptive names like & for &. Decimal entities use the character code number like & for &. Hex entities use the hexadecimal code like & for &. All three produce the same result in browsers. Named entities are more readable, while numeric entities work for any Unicode character.
- Can I decode mixed entity formats?
- Yes! The decoder handles all three formats simultaneously. You can paste text containing a mix of named entities (&), decimal entities (&), and hex entities (&) and they will all be decoded correctly in one pass.
- Is my data safe?
- Absolutely. All encoding and decoding happens entirely in your browser using JavaScript. No data is transmitted to any server. Your content stays on your device at all times.