JSON String Escaper
Escape text into a safe JSON string — quotes, newlines and special characters handled.
Was this tool helpful?
Thanks for the feedback!
Escape any text into a valid JSON string — quotes, backslashes, newlines and tabs are all encoded correctly, so you can safely embed text inside JSON by hand. It runs entirely in your browser.
Reverse it with the JSON String Unescaper.
Frequently asked questions
How do I escape a string for JSON?
Paste your text and click escape; the tool wraps it in quotes and encodes special characters like " and newlines.
When do I need to escape JSON strings?
When embedding multi-line text, quotes or special characters inside a JSON value by hand.
What characters get escaped?
Double quotes, backslashes, newlines, tabs and other control characters, per the JSON specification.
Can I reverse it?
Yes, use the JSON String Unescaper to decode an escaped string back to plain text.