JSON Stringify and Escape
Turn JSON into one escaped string with quotes and backslashes in the right places, ready to paste into code, an environment variable or another JSON field. Unstringify turns it back.
How to use it
- Paste JSON.
- Copy the escaped string from the Output box.
- To reverse it, open Unstringify and paste the escaped string.
What it does
- Escapes quotes, backslashes, newlines and control characters
- Unstringify works with or without the outer quotes
- Escape text tool for any text, with optional \u codes
- URL encode, Base64 and HTML entities for other encodings
Questions
- What is the difference between stringify and escape?
- Stringify turns JSON into one JSON string. Escape text does the same for any plain text.
- How do I unescape a JSON string?
- Use Unstringify: it turns an escaped string back into real, formatted JSON.
- Is my data uploaded?
- No. Everything runs in your browser.
More JSON tools
Bracely has more than 60 JSON tools in one page. Related ones:
Runs entirely in your browser. Nothing you paste is uploaded. Privacy policy