All tools / Developer

String Escape

Escape text for a JSON or JavaScript string, or turn \n and \" back into real characters.

Loading the tool…

How to use String Escape

  1. Paste or type your text into the Input box.
  2. Adjust any options above it; the result updates as you go.
  3. Press Copy to put the result on your clipboard, or Save to download it.

Questions

Is this tool free?

Yes. String Escape is free to use, with no sign-up and no limit on how often you use it.

Is what I enter kept private?

Yes. Everything you type stays in the page on your own device. Nothing is sent to a server.

More developer tools

  • HMAC Generator – Sign a message with a secret key using HMAC-SHA.
  • Random String – Random tokens in hex, letters and digits, or URL-safe characters.
  • HTTP Status Codes – Look up what an HTTP status code means.
  • Chmod Calculator – Tick the permissions and get the octal number and chmod command.
  • Key Code Viewer – Press any key to see the values a web page receives for it.
  • CSV Viewer – Paste or drop CSV and read it as a table. Click a heading to sort.

All developer tools · All 96 tools