Free HTML Tool
HTML Encoder / Decoder
Escape special characters like &, <, >, and " for safe HTML paste. Or decode HTML entities back to readable text.
Encoded output below
Paste your text above to encode or decode HTML entities.Waiting
0Input Chars
0Output Chars
0Chars Escaped
0Lines
HTML Entity Reference
| Character | Name | Named Entity | Hex Code | Copy |
|---|---|---|---|---|
| & | Ampersand | & | & | |
| < | Less Than | < | < | |
| > | Greater Than | > | > | |
| " | Double Quote | " | " | |
| ' | Single Quote | ' | ' | |
| Non-Breaking Space | |   | ||
| © | Copyright | © | © | |
| ® | Registered | ® | ® | |
| ™ | Trademark | ™ | ™ | |
| € | Euro Sign | € | € | |
| £ | Pound Sign | £ | £ | |
| ¥ | Yen Sign | ¥ | ¥ | |
| ° | Degree Sign | ° | ° | |
| ± | Plus Minus | ± | ± | |
| × | Multiplication | × | × | |
| ÷ | Division | ÷ | ÷ |
When to use HTML encoding
Always encode user-generated content before inserting into HTML
Use & instead of bare & inside href attributes
Encode code snippets to prevent browsers from rendering them
Use to add non-breaking spaces in HTML layouts
Decode to read raw text hidden inside encoded HTML emails
Encoding prevents XSS attacks in web applications



