Escape and unescape text for JSON, JavaScript, SQL, CSV, regular expressions, HTML attributes and shell strings. Handles quotes, newlines, tabs and Unicode correctly.
Choose JSON and Escape. Quotes, backslashes and line breaks are converted, and the result is wrapped in quotes if you like.
Choose Unescape and paste the string. \n becomes a real line break and \" becomes a quote.
Choose SQL. Each single quote is doubled, which is the standard SQL escape.
Be the first to share your experience with this tool — your feedback helps others.