Escape / Unescape
Escape or unescape text for JavaScript, HTML, XML, SQL, and regex
Paste text to escape for javascript.
Escape / Unescape for code
This tool escapes or unescapes text for use in JavaScript/JSON, HTML, XML, SQL, and regex. Escaping makes special characters safe for strings and queries; unescaping restores the original text.
Formats
- JavaScript/JSON: Backslashes, quotes, newlines, tabs (e.g.
"\n"). - HTML / XML: Encode
& < > " 'to entities. - SQL: Double single quotes (
'→''). - Regex: Escape
\ ^ $ . | ? * + ( ) [ ] { }for use in regular expressions.
For full HTML entity encode/decode, see the HTML Entities Converter.
Added Mar 6, 2026
🔄 Workflow Suggestion
Try combining multiple tools for a complete workflow. For example: Notepad → Text Encryption → Save to Cloud or Date Calculator → Calendar → Countdown Timer
Related Tools & Recommendations
💡 You might also need
Base64 Encode/Decode
Convert text to Base64 format and decode Base64 strings
JSON Formatter & Validator
Format, validate, and minify JSON data with syntax highlighting and error detection
YAML ⇄ JSON Converter
Convert between YAML and JSON formats with validation and formatting
📁 More Utilities Tools
YAML Formatter and Validator
Format and validate YAML with consistent indentation. No conversion to JSON.
HTTP Request Builder
Build HTTP requests with URL, method, headers, and body. Send or copy as cURL or fetch snippet.
SSL Certificate Checker
Check SSL/TLS certificate validity, issuer, subject, and SANs. Paste PEM or upload .pem/.crt. Client-side only.
Send Feedback
We'd love to hear your thoughts! Your feedback helps us improve our tools and create a better experience for everyone.
Share Your Experience
Tell us what you think about this tool