JSON Escape
Escape quotes, control characters, backslashes, and optional Unicode for JSON strings.
JSON Escape
Your data stays private. All processing happens locally in your browser. Nothing is uploaded to our servers.
Why use JSON Escape?
Escape quotes, control characters, backslashes, and optional Unicode for JSON strings. Processing stays in the current browser tab so the source remains private.
How to use it
- 1
Enter the original text.
- 2
Choose whether to escape Unicode.
- 3
Select Escape and copy the result.
Common use cases
Prepare fixture text for source code
Example
A "quoted" line
Second line ✓Frequently asked questions
What does JSON Escape do?
Escape quotes, control characters, backslashes, and optional Unicode for JSON strings. Processing stays in the current browser tab so the source remains private.
Is my text input uploaded?
No. Your text input is processed locally by browser APIs and is never sent to DevTools Hub.
Can I use JSON Escape without an account?
Yes. JSON Escape is free, works without registration, and supports modern desktop and mobile browsers.
Explore more developer tools
Related tools
JSON Unescape
Decode JSON escape sequences into their readable text representation.
JSON ToolsJSON Formatter
Beautify and validate JSON with readable indentation.
JSON ToolsJSON Validator
Check JSON syntax and locate common errors.
JSON ToolsJSON Minifier
Remove unnecessary whitespace from valid JSON.
JSON ToolsSimilar tools
JSON to YAML
Convert JSON objects and arrays into readable YAML with configurable indentation.
JSON ToolsYAML to JSON
Parse safe YAML and convert it into consistently indented JSON.
JSON ToolsJSON Sorter
Recursively sort JSON object keys while preserving array order and values.
JSON ToolsJSON Path Finder
Search JSON keys and values and return the path to every match.
JSON ToolsPopular tools
Recently added tools
Color Converter
Convert HEX, RGB, RGBA, HSL, and HSLA colors with alpha preservation.
Conversion ToolsCron Expression Explainer
Explain standard five-field numeric Unix cron expressions and calculate five future runs.
Conversion ToolsChecksum Generator
Calculate SHA-256, SHA-384, or SHA-512 checksums from UTF-8 text.
Security and Data ToolsHMAC Generator
Sign a message with HMAC-SHA-256, SHA-384, or SHA-512 using Web Crypto.
Security and Data Tools