HTML Entity Encoder
Encode and decode HTML entities
Calculator
Encoding Options
Sample Texts
Common HTML Entities Reference
| Character | Named Entity | Numeric | Description | Insert |
|---|---|---|---|---|
| < | < | < | Less than | |
| > | > | > | Greater than | |
| & | & | & | Ampersand | |
| " | " | " | Double quote | |
| ' | ' | ' | Single quote | |
| (space) | |   | Non-breaking space | |
| © | © | © | Copyright | |
| ® | ® | ® | Registered | |
| ™ | ™ | ™ | Trademark | |
| € | € | € | Euro sign | |
| £ | £ | £ | Pound sign | |
| ¥ | ¥ | ¥ | Yen sign | |
| • | • | • | Bullet | |
| — | — | — | Em dash | |
| – | – | – | En dash | |
| ° | ° | ° | Degree |
About HTML Entities
- * HTML entities represent special characters that have meaning in HTML markup
- * Characters like <, >, and & must be encoded to display correctly
- * Named entities (like ©) are human-readable, numeric (like ©) are more universal
- * Encoding user input prevents XSS (Cross-Site Scripting) security vulnerabilities
- * Non-ASCII characters can be encoded for compatibility with older systems
How to Use
Encode or decode HTML entities in 3 simple steps
Enter your text
Paste or type the text you want to encode or the HTML entities you want to decode
Choose encoding options
Select whether to encode only special characters or all non-ASCII characters
Click Encode or Decode
Click the appropriate button and copy the result to your clipboard
Frequently Asked Questions
HTML entities are special codes used to represent characters that have special meaning in HTML or characters that are not easily typed on a keyboard. For example, < and > are used for HTML tags, so you need to encode them as < and > to display them as text. Encoding prevents XSS attacks and ensures your content displays correctly.
Encoding special characters only (< > & " ') converts just the characters that have special meaning in HTML. Encoding all characters converts every non-ASCII character to its numeric entity (&#NNN;). Use "special only" for most cases, and "all characters" when you need maximum compatibility with older systems.
Use HTML entity encoding when displaying user input on web pages (prevents XSS attacks), embedding special characters in HTML attributes, working with characters not supported by your character set, or creating HTML that needs to work in older browsers and email clients.
Named entities use descriptive names like & for & and < for <. Numeric entities use Unicode code points like & for & and < for <. Named entities are more readable, but numeric entities work for any Unicode character. This tool supports both.
Developer Tools
Code formatters, minifiers, converters, and developer utilities