How it works
Escape with JSON.stringify; unescape by parsing a complete JSON string literal and requiring a string result.
Input definitions
- Text or JSON string literal
- Plain text; maximum 200,000 characters.
- Operation
- Choose Escape string / Unescape string.
A worked example
- Text or JSON string literal
- Hello world
- Operation
- Escape string
Assumptions & limits
No code execution. Unescape requires a string, not a JSON object, array or number.
Sources & review
Maintained by AnsRio. Methods and examples use automated checks; this does not imply independent professional certification.
Method updated 2026-10-17. Content checked against the stated method and examples. Our verification approach.
Common questions
Why does unescape require double quotes?
A JSON string literal includes its enclosing double quotes. The tool parses that complete literal and rejects objects, arrays and numeric values rather than treating them as text.
Does this tool execute the code or data I paste?
Inputs are treated as data under the stated parser or transformation. Output is displayed as text. Parsing or formatting does not establish that the content is safe to execute elsewhere.
How does the JSON string escape and unescape tool work?
Escape with JSON.stringify; unescape by parsing a complete JSON string literal and requiring a string result.
What are the assumptions and limits of JSON string escape and unescape?
No code execution. Unescape requires a string, not a JSON object, array or number.