Raw input
Line "one"
Line two with tab
Convert raw text with quotes, newlines, tabs, or backslashes into JSON-safe string content before pasting it into an API payload, config file, or fixture.
Line "one"
Line two with tab
Line \"one\"\nLine two with tab
JSON string preset selected.After escaping a string, developers often format the surrounding payload with JSON Formatter and Validator or URL encode it for transport.
No. JSON strings are delimited by double quotes, so single quotes usually do not need escaping unless another layer requires it.
Yes. The escape tool has an unescape mode for turning common escape sequences back into readable text.
Yes. After escaping the string, run the full payload through the JSON formatter and validator to catch missing commas or broken braces.