Toffeekit
  • Home
  • All tools513
  • Recent
  • Favorites
Categories
  • Images51
  • Video21
  • PDF33
  • AI24
  • Data21
  • SEO12
  • Developer32
  • Text27
  • Design18
  • Files13
  • Utilities5
  • Productivity17
  • Finance26
  • Math39
  • Education19
  • Date & Time29
  • Converters43
  • Fun & Random24
  • SaaS13
  • Business17
  • Social11
  • Media5
  • Security13
Buy me a coffee
ToffeekitDeveloperString Escape

String Escape

Escape text for JSON and JS strings, or unescape. Runs entirely in your browser — nothing you paste is sent anywhere.

Help
Runs locally Instant, no sign-up Works offline
How it works

How to use String Escape

  1. 01Paste your text into the Input box.
  2. 02Choose Escape to make it safe inside a JSON or JS string, or Unescape to reverse it.
  3. 03Copy the result without the surrounding quotes.
  4. 04Press Swap to feed the output back in the opposite mode.
Questions

String Escape FAQ

6 answers to what people ask most about the String Escape.

How do I escape a string for JSON?

Paste the text with Mode on Escape. Double quotes, backslashes, tabs and line breaks are converted to \", \\, \t and \n.

How do I unescape a JSON string?

Switch to Unescape and paste the escaped text. Sequences like \n and \u00e9 turn back into a real new line and the letter e with an accent.

Do I include the surrounding quotes?

No. The output is the inside of the string only, so you add your own quotes around it. On input, one pair of outer quotes is ignored.

How do I put a multi-line text into a JSON value?

Escape it. Each real line break becomes \n, so the whole text fits on one line inside the JSON string.

Why do I get an Invalid escape sequence error?

The text has a backslash that is not part of a valid JSON escape, or an unescaped control character. Fix the stray backslash and try again.

Is String Escape free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

Something not working? Tell us and we'll fix it.

Report an issue
More tools
JSON Formatter

Format, minify and validate JSON with clear errors.

Developer
Base64 Encode / Decode

Encode text to Base64 or decode it back, UTF-8 safe.

Developer
URL Encode / Decode

Percent-encode query values or whole URLs.

Developer
HTML Entities

Escape < > & and quotes, or decode entities.

Developer
Something off with String Escape? Report an issue or ask for a feature.Send feedback
© 2026 Toffeekit/Runs locally · No uploads · Free
AboutContactFeedbackPrivacyTermsCookiesSettingsllms.txt