HTML Entity Encoder & Decoder
Encode special characters to HTML entities or decode HTML entities back to readable text online. Includes a common entities reference.
Common HTML Entities
| Character | Entity | Numeric | Description |
|---|---|---|---|
| & | & | & | Ampersand |
| < | < | < | Less than |
| > | > | > | Greater than |
| " | " | " | Double quote |
| ' | ' | ' | Single quote |
|   | Non-breaking space | |
| © | © | © | Copyright |
| ® | ® | ® | Registered |
| ™ | ™ | ™ | Trademark |
| — | — | — | Em dash |
How to encode HTML entities
- Paste your HTML or text into the input area.
- Click Encode to convert special characters to named entities (<, &, etc.).
- Click Encode All to convert all non-ASCII characters to numeric entities (©).
- Click Decode to convert entities back to readable characters.
Common HTML entities
- < = < (less than) — prevents HTML tag injection.
- > = > (greater than) — closes tag brackets safely.
- & = & (ampersand) — required in HTML attributes and URLs.
- " = " (double quote) — safe inside HTML attributes.
- = non-breaking space — prevents line breaks between words.
Need more tools?
Browse our collection of free developer tools.
Browse All Tools →