Escape JSON String
Wrap and escape text into a valid JSON string literal, safe to drop into code. Free, no signup.
No signup100% in your browserFree forever
Frequently Asked Questions
- What does escaping do?
- It adds a surrounding quote and backslash-escapes any quotes or special characters inside.
- When do I need this?
- When building JSON by hand or embedding user text into a string field in code.