Escape & Unescape
Encode and decode HTML, URL, and JSON strings quickly. Free online escape tool for safer text handling.
Tool input stays in your browser. The site may use cookies for ads.
<script>alert("Hello!");</script>
HTML: Escape < > & " for HTML
How to Use
1
Paste the string and pick HTML, URL, JSON, or related mode.
2
Copy the escaped or decoded result into code or templates.
Frequently Asked Questions
When should I HTML-escape?
Escape user-controlled text before inserting into HTML to reduce XSS risk. Prefer framework-safe APIs when available.
URL encode vs Base64?
URL encoding keeps strings safe in query parameters. Base64 is for binary-safe text transport — different jobs.