HTML Escape / Unescape
Escape special HTML characters (&, <, >, ", ') for safe display in HTML, or unescape previously escaped text. Runs entirely in your browser.
HTML Escape / Unescape tool
How to use
Choose mode
Switch between Escape (text → safe HTML) and Unescape (entities → raw text).
Enter input
Type or paste the text or HTML-escaped string.
Copy result
Use Copy to copy the escaped or unescaped output.
Examples
Escape
Special chars become entities.
Input<div>Hello & "world"</div>Output<div>Hello & "world"</div>
Frequently asked questions
- Why escape HTML?
- To prevent XSS and to display code or user input safely in HTML.
- Which entities are supported?
- Standard five: & < > " ' (and ' when unescaping).
Related tools
You might find these useful too.