String Escape / Unescape (JS, SQL, CSV, Regex, Shell)
Escape text safely for JavaScript, JSON, SQL, CSV, regular expressions or the command line, and back.
Tool inputs stay in your browser · optional AI search sends your query
Good to know: Escaping stops special characters (quotes, backslashes, dots in regex) from breaking your code. For SQL, always prefer parameters; escaping is a backup.
How to use it (step by step)
- 1Type or paste your text into the “Text” box. There is already an example in it so you can see how it works; press Clear to start with your own.
- 2Choose your settings: “Escape for”, “Direction”.
- 3The answer appears right away in the “Result” box. No button needed.
- 4Press Copy and paste the result wherever you need it.
Words to know
- CSV export
- A simple spreadsheet file (values separated by commas) that apps like Excel, Google Sheets and Meta Business Suite can save and open.
- JSON
- A common text format apps use to store and send data, made of names and values in { } brackets.
- Regex
- A search pattern. For example \d+ finds every number in a text.
- Escape / unescape
- Adding a backslash or code before special characters (like quotes) so they do not break your code. Unescape turns them back.
- SQL
- The language used to ask a database for data, e.g. SELECT name FROM users.
More in Developer
Android API Level & Version LookupFind which Android version an API level is (API 34 = Android 14) and the other way around, with the full table.App Links File Generator (assetlinks.json & Apple AASA)Create assetlinks.json (Android App Links) and apple-app-site-association (iOS Universal Links) so your website links open your app.cURL Command Builder & CLI GeneratorVisually build robust bash cURL commands with headers, auth, and payloads.HTML5 Table Code GeneratorGenerate clean semantic HTML tables with headers and styling.DNS Record Generator (SPF, DMARC, MX)Generate DNS records to authenticate email delivery and pass spam filters.Git Command Cheatsheet & Terminal HelperLook up exact Git commands for common development workflows.