JSON String Escaper
Escape text as a JSON string or decode a JSON string.
When to use JSON String Escaper
Prepare a text value for a JSON field while distinguishing a string literal from a JSON object.
How to use JSON String Escaper
- Prepare the input for JSON String Escaper: Plain text for Escape, or a JSON string literal for Unescape. Paste the text or use Load example.
- Select Escape or Unescape for the operation you need.
- Check the output: A quoted JSON string or its decoded text. Copy only the result you intend to use.
A practical example
Hello "world" → "Hello \"world\""
Limitations and common mistakes
Unescape accepts a JSON string, not an object or arbitrary JavaScript.
Questions about JSON String Escaper
What should I enter in JSON String Escaper?
Plain text for Escape, or a JSON string literal for Unescape.
What does JSON String Escaper return?
A quoted JSON string or its decoded text.
What should I check before using the result?
Unescape accepts a JSON string, not an object or arbitrary JavaScript.
Supported input and output
Plain text for Escape, or a JSON string literal for Unescape.
A quoted JSON string or its decoded text.
