HTML Escape
Escape and unescape HTML entities — prevent XSS
About this tool
Escape and unescape HTML entities to prevent XSS attacks and rendering issues. Converts characters like <, >, &, and quotes into their safe HTML entity equivalents.
- ·One-click switch between escape and unescape
- ·Handles all HTML special characters
- ·Prevents XSS injection attacks
- ·Runs entirely in your browser — data never leaves your device
Frequently asked questions
When do I need to escape HTML?▼
Whenever you display user-generated content on a web page. Without escaping, malicious scripts could execute (XSS attack) or the page layout could break.
Which characters are escaped?▼
& becomes &, < becomes <, > becomes >, " becomes ", and ' becomes '.
Does this work offline?▼
Yes. Everything runs in your browser with no server calls.
Related tools
Convert code between Python, JavaScript, Go, Java, Rust and more
Describe what you need in plain English, get a regex with explanation
Convert between camelCase, snake_case, kebab-case, PascalCase and more
Generate engaging LinkedIn posts that drive impressions and comments