What is the String Escape Tool?
Special characters like quotes, backslashes and new lines break code when you paste text into JSON, JavaScript strings, SQL queries, CSV files or regular expressions. Pick the format, paste your text and get a safely escaped version – or reverse it to see the original text.
How to use the String Escape Tool
- Choose the format (JSON, JavaScript, HTML, SQL, CSV, Regex, URL, Unicode).
- Paste your text and press Escape or Unescape.
- Copy the result.
Examples
- JSON: He said "hi" → He said \\"hi\\"
- SQL: O'Brien → O''Brien
- Regex: price (USD) $5 → price \\(USD\\) \\$5
This String Escape Tool is 100% free, needs no signup and runs privately in your browser – on phone, tablet or computer.
Last updated: · By NodifyTech