HTML Entity Encoder / Decoder
Encode special characters into HTML entities or decode them back to plain text.
Encoding Scope
Enter text to encode or decode
Results appear instantly as you type
Common HTML Entities
| Character | Entity | Description |
|---|---|---|
| & | & | Ampersand |
| < | < | Less than |
| > | > | Greater than |
| " | " | Double quote |
| ' | ' | Single quote / Apostrophe |
| ␣ | | Non-breaking space |
| © | © | Copyright |
| ® | ® | Registered |
| ™ | ™ | Trademark |
| € | € | Euro sign |
| £ | £ | Pound sign |
| — | — | Em dash |
| – | – | En dash |
| … | … | Ellipsis |
Ctrl+Enter to runCtrl+Shift+C to copy
Learn More
HTML Entity Encoding: Prevent XSS and Display Special Characters
Unescaped HTML is a security risk. Learn how entity encoding protects your site and renders special characters.
What Are HTML Entities?
HTML entities are special codes that represent characters which either have a special meaning in HTML or cannot be typed directly. For example, < is the HTML entity for the < character (less-than sign), which would otherwise be interpreted as the start of an HTML tag.
5 min readRead full guide