HTML Entity Encoder / Decoder
Encode and decode HTML entities in real time. No signup required.
0 chars
Common HTML Entities Reference
| Character | Name | HTML Entity |
|---|---|---|
| & | Ampersand | & |
| < | Less than | < |
| > | Greater than | > |
| " | Double quote | " |
| ' | Single quote | ' |
| / | Slash | / |
| [nbsp] | Non-breaking space | |
| © | Copyright | © |
| ® | Registered | ® |
| ™ | Trade mark | ™ |
| € | Euro sign | € |
| £ | Pound sign | £ |
| ¥ | Yen sign | ¥ |
| ¢ | Cent sign | ¢ |
| — | Em dash | — |
| – | En dash | – |
| … | Ellipsis | … |
| « | Left angle quote | « |
| » | Right angle quote | » |
| “ | Left double quote | “ |
| ” | Right double quote | ” |
Frequently Asked Questions
- What are HTML entities?
- HTML entities are special codes used to represent characters that have special meaning in HTML, like < (<), > (>), and & (&). They prevent browser rendering issues.
- When should I encode HTML?
- Encode HTML when displaying user-generated content, showing code examples, or any time you need to prevent XSS vulnerabilities by escaping special characters.
- What is the difference between encoding and escaping?
- HTML encoding and HTML escaping are the same thing — converting special characters to their entity equivalents so the browser treats them as text, not markup.
- Does this handle numeric entities?
- Yes. The decoder handles named entities (&), decimal numeric entities (&), and hexadecimal entities (&).
- Is my content processed on a server?
- No. All encoding and decoding happens in your browser using JavaScript. Nothing is sent to any server.