JSON String Escape / Unescape Tool
Escape or unescape quotes, newlines, tabs, and backslashes for safe embedding in JSON strings.
About this tool
Safely embed multi-line text, SQL queries, or HTML markup inside JSON strings without escaping syntax errors.
How to use this tool
- Paste your raw text or escaped string.
- Click Run JSON Escape.
- Copy the sanitized, escaped string ready for pasting.
How it works
Applies standard JSON character escaping rules to translate special control codes and unescapes string literals safely.
When to use this tool
- Embedding SQL scripts or HTML snippets inside JSON configurations.
- Debugging escaped string literals in log files.
Frequently asked questions
Does it add outer quotes?
Outer quotes are automatically stripped so you can paste directly into your JSON property.
Limitations
Preserves UTF-8 unicode characters.
Privacy
Client-side processing only.