String Escape / Unescape
Use this string escaper to escape or unescape text with common JSON and code characters such as \n, \t, \", and \\.
String Escape / Unescape Workspace
Plain string
Converted result
How to use
- 1 Put a plain string or JSON-escaped string in the matching field.
- 2 Use Escape for plain text or Unescape for escaped text.
- 3 Auto detect chooses the direction by checking for quote, backslash, or Unicode escape notation.
- 4 Check how newlines, tabs, and quotes were converted.
- 5 Copy the result you need.
Common use cases
- Prepare JSON string literals
- Expose newlines and tabs
- Restore escaped text
Frequently asked questions
Which characters are escaped?
Backslashes, double quotes, single quotes, newlines, carriage returns, and tabs are converted into escape sequences for JSON and code strings.
Can I restore an escaped string?
Yes. Put the escaped string in the escaped field and run Unescape to restore characters such as newlines and tabs.
How does auto detect work?
It unescapes when it finds clear quote, backslash, or Unicode escape notation. If those patterns are not present, it treats the input as plain text and escapes it.
Does it validate an entire JSON document?
No. It helps with string escape and unescape only; it does not validate JSON syntax or format objects.
Related workflow
String Escape / UnescapeStart by matching the string's escaped form to the JSON or code where it will be used.
→
Base64 DecoderIf the unescaped string is Base64, decode it next to inspect the actual content.
→
Base64 EncoderConvert the cleaned string to Base64 when another setting or request expects it.