Free String Escape & Unescape Tool Online
Escape and unescape strings for JavaScript, HTML, URL, and regex. Handle special characters, quotes, and backslashes instantly. Free online string escape tool.
What is String Escape/Unescape?
String escaping converts special characters into their escaped equivalents so they can be safely used in code, URLs, or HTML. For example, a double quote becomes \" in JavaScript, or " in HTML. Unescaping reverses this process. This tool handles JavaScript, HTML, URL, and regex escaping in one place.
How to Use Escape/Unescape
- Paste your text into the input area
- Select the escape mode (JavaScript, HTML, URL, or Regex)
- Click 'Escape' or 'Unescape' depending on your need
- Copy the result from the output area
Escape/Unescape Features
- JavaScript string escaping (quotes, backslashes, newlines)
- HTML entity encoding and decoding
- URL percent-encoding and decoding
- Regex special character escaping
- Bidirectional: escape and unescape in one tool
Escape/Unescape FAQ
When do I need to escape strings?
You need to escape strings when embedding them in code (JavaScript, SQL), HTML attributes, URLs, or regular expressions to prevent syntax errors or security issues.
What is HTML entity encoding?
HTML entity encoding replaces characters like <, >, &, and " with their HTML entity equivalents (<, >, &, ") to prevent XSS attacks.
Is my data secure?
Yes! All processing happens in your browser. Your data is never sent to any server.