HTML Escape / Unescape
Paste text and the tool instantly detects the direction, converting between HTML special characters and character references. It even shows a breakdown of which characters were converted and how many times. Everything runs in your browser.
0 chars
0 chars
Copied!
Conversion breakdown
No characters to convert
The 5 special characters that need HTML escaping
| Character | Reference | Meaning / why it must be escaped |
|---|---|---|
& | & | Ampersand. Starts every character reference, so it must be escaped first |
< | < | Less-than sign. Interpreted as the start of a tag |
> | > | Greater-than sign. Interpreted as the end of a tag |
" | " | Double quote. Breaks attribute value delimiters |
' | ' | Single quote. ' is used instead of ' for HTML4 compatibility |