Development tools
HTML Entity Encoder/Decoder
Encode text to HTML entities to prevent XSS, or decode entities back to plain text — supports named, decimal and hex entity formats.
Named entities
Numeric entities
Hex entities
Decode back
XSS-safe
Copy output
Free · No credit card · 50 credits/day
Common HTML entities reference
| Character | Named | Numeric | Use case |
|---|---|---|---|
| & | & | & | Ampersand in text |
| < | < | < | Less-than / opening tag |
| > | > | > | Greater-than / closing tag |
| " | " | " | Double quote in attribute values |
| ' | ' | ' | Single quote in attribute values |
| |   | Non-breaking space | |
| © | © | © | Copyright symbol |
| ® | ® | ® | Registered trademark |
| ™ | ™ | ™ | Trademark symbol |
| — | — | — | Em dash (longer dash) |
Frequently asked questions
Related dev tools
More encoding and escaping tools.
Encode HTML entities safely
Free account. 50 credits per day. Access to 75+ tools instantly.
Create free account →