JSON
JSON to String Converter
Convert JSON or plain text into an escaped string literal, or switch modes to decode an escaped string back to readable text.
Runs locally in your browser. Your input is not uploaded.
How this tool works
Escaped strings are common in source code, logs, environment variables, and nested payloads.
This converter helps move between readable JSON/text and string-safe representations.
Examples
- Escape a JSON object before putting it in a shell variable.
- Decode a quoted string copied from a log line.
Common use cases
Source code literals
Log inspection
Nested payloads
FAQ
What does escaping do?
Escaping represents quotes, newlines, and backslashes safely inside a string literal.
Can I reverse an escaped string?
Yes. Use reverse mode to parse a quoted escaped value or decode common escape sequences.