Browser-only tool
HTML escape and unescape
Convert characters like <, >, &, quotes, and apostrophes to HTML entities, or decode common entities back to readable text.
Browser-only tool
Convert characters like <, >, &, quotes, and apostrophes to HTML entities, or decode common entities back to readable text.
Warning: escaping helps in specific text contexts, but it is not a complete XSS defense for every HTML, attribute, URL, CSS, or JavaScript context.
HTML escaping and unescaping runs locally in your browser. Input is not uploaded.
It helps when text is inserted into the correct HTML text context, but complete XSS prevention depends on context-aware escaping and sanitization.
This tool escapes ampersand, less-than, greater-than, double quotes, single quotes, and backticks.
It can be dangerous if decoded content is inserted into a page as trusted HTML. Treat untrusted decoded output as text unless sanitized.
No. Framework escaping should remain the primary protection in applications. This page is for inspection, examples, and manual conversion.
Quotes matter when text is inserted into HTML attributes. Escaping them reduces accidental markup breakage.