Encode special characters to HTML entities or decode them back. Runs in your browser.
Common HTML Entities
| Character | Entity | Code |
|---|---|---|
< | < | < |
> | > | > |
& | & | & |
" | " | " |
' | ' | ' |
| |   |
Β© | © | © |
β¬ | € | € |
When to Encode
- Displaying user input in HTML (prevents XSS attacks)
- Embedding code snippets in HTML pages
- Storing special characters in XML/HTML documents