String escape / unescape

Make a piece of text safe to drop into JSON, code, a CSV cell, an SQL query or a regex - or turn escaped text back into normal text.

For

Direction

Free · No sign-up · Your files are processed on your device and never uploaded

How to use String escape / unescape

  1. Paste or type…
    1

    Paste or type

    Put your content in the box - or try the example.

  2. Result appears instantly
    2

    Watch the result

    The result updates as you type - choose options above if needed.

  3. TXTCopy / Download
    3

    Download the result

    Ready in seconds. Your file never left your device.

Features

  • JSON and JavaScript (\n \t \" \u…).
  • CSV quoting with "" escapes.
  • SQL '' escaping.
  • Regex special characters.

Free and private

Everything runs in your browser. Nothing you paste is uploaded, logged or stored.

Questions

Does SQL escaping make queries safe?

Prefer parameterised queries in your code - escaping is a fallback.

Is it free?

Yes - free and unlimited, with no sign-up and no watermark.

More developer tools

All tools →