String Escape / Unescape
Escape special characters for JavaScript, JSON, URL, HTML and SQL, or unescape them back to plain text.
Input
Output
How to use the String Escape / Unescape
Escape special characters for JavaScript, JSON, URL and HTML — or unescape them back to plain text.
Steps
- Pick a context (JavaScript, JSON, URL or HTML) and a direction (Escape or Unescape).
- Paste your text, click Convert, then Copy the result.
Useful when embedding strings into code, building query strings, or displaying raw HTML safely.