String escape & unescape

Escape or unescape text for JSON strings, regular expressions and shell commands. Avoids quoting mistakes.

Runs in your browser ยท nothing is sentEncoding

The result appears here

About this tool

Choose the target format and direction, paste your text and copy the result.

๐Ÿ”’ Your input stays in your browser and is never sent anywhere.

Frequently asked questions

Why escape text for the shell?

Special characters can change what a command does. Single quotes make the text literal.

What to do next

Also useful

  • JSON formatterFormat, validate and minify JSON. Shows clear error messages. Processing stays in your browser.
  • Regex testerTest regular expressions with live matches and capture groups. Supports flags such as g, i and m.
  • ASCII tableComplete ASCII table with decimal, hexadecimal, octal and binary values for all 128 characters, including control codes.

Found a problem or have a suggestion? Tell us