Escape and Unescape Strings: JSON, JavaScript, HTML, URL, CSV, SQL, Regex

Put text safely inside JSON, JavaScript, HTML, a URL, a CSV cell, a SQL string or a regular expression, or decode escaped text back to plain text.

loading tool

How to use the escape / unescape string

  1. Type or paste your text (one item per line where it says so).
  2. Pick the options; the result updates as you type.
  3. Copy or download the result.

Questions

Should I use this instead of prepared statements?

No. For SQL in real apps, always use parameterised queries. This tool is for quick scripts and checking values.

Is my data private?

Yes. Everything happens inside your own browser: nothing you type or choose is uploaded to us or anyone else.

Is it free?

Completely free, with no sign-up, no watermark and no limit on how many times you use it. Light ads keep the site running.