Choose your tool
No tools match your search.
JSON Unescape and Escape
Unescape a quoted JSON string into readable text, or escape plain text for use as a JSON string.
Your results will appear here.
Three steps. That’s it.
A useful toolkit for text, data, images and calculations.
- 01
Add your input
Choose a tool, enter values or select a file.
- 02
Make it yours
Adjust the options and run the action.
- 03
Take the result
Copy the result or download its file.
What this tool does
Escape text as a JSON string or decode a quoted JSON string. Use it to inspect or transform snippets before using them in your project. Input is processed locally; generated code should be reviewed before execution.
How to use it
Enter your input or choose Try example. Set the labeled options, run the tool, then inspect, copy or download the result.
Example
Hello "world" Next line
With the default options, this example produces:
"Hello "world"nNext line"
What should I check before using the result?
Check the options, encoding and output format. This tool applies the transformation described above and does not validate business requirements.
Where is my input processed?
The bundled tool code processes input in your browser. It does not send or save your input. Extensions and other site plugins may have separate behavior.
JSON string decoder online
Use JSON unescape online to decode a complete quoted JSON string containing escaped quotes, backslashes, tabs or line breaks. Escape mode performs the reverse transformation: it serializes plain text into one quoted JSON string. A JSON string is different from a JSON object; use the JSON Formatter for objects and arrays.
How to use it
For readable text, select unescape under Action and paste a complete JSON string including its outer double quotes. Run the tool, then inspect, copy or download the decoded text. To prepare plain text for a JSON field, select escape; the output includes the surrounding double quotes.
Options and example settings
Worked examples
Decode a JSON string from a log or API field, or safely serialize plain text before inserting it as a JSON string value.
Escape quotes and a line break
Settings: Action: escape
Input:
Hello "world" Next line
The output includes outer quotes; the line break becomes a literal backslash-n.
Output:
"Hello \"world\"\nNext line"
Unescape a line break
Settings: Action: unescape
Input:
"Hello\nworld"
The backslash-n becomes a real line break.
Output:
Hello world
The example output has 2 lines. Compare its order, separators and whitespace with the input before copying the result.
Decode a Unicode escape
Settings: Action: unescape
Input:
"\u00eb"
The JSON Unicode escape becomes an accented character.
Output:
ë
Decode a Windows-style path
Settings: Action: unescape
Input:
"C:\\temp"
The doubled JSON backslash becomes one backslash.
Output:
C:\temp
Limitations and common mistakes
- Use double quotes, not single quotes, around the JSON string.
- A raw line break inside a quoted JSON string is invalid; use the escape sequence \n.
- Unsupported escapes such as \x41 are rejected. JSON and JavaScript string syntax are not identical.
- Do not paste an entire JSON object into unescape mode. Extract the quoted string value first, or use JSON Formatter.
- Decode only the intended layer. Double-encoded strings can retain visible escape sequences after one pass.
- Unescape mode requires a quoted JSON string, not an object or unquoted escaped text.
Frequently asked questions
Does escape mode encode every accented character as \uXXXX?
No. JSON.stringify normally leaves ordinary Unicode characters readable and escapes characters required by JSON string syntax.
Does this format a JSON object?
No. This tool operates on strings. Use JSON Formatter and Validator to pretty-print an object or array.
Why is my input rejected?
Check the outer double quotes, backslash escaping and raw control characters. A valid JSON number, object or array is still not a string and is rejected.
How can I unescape a JSON string online?
For readable text, select unescape under Action and paste a complete JSON string including its outer double quotes. Run the tool, then inspect, copy or download the decoded text. To prepare plain text for a JSON field, select escape; the output includes the surrounding double quotes.
Technical references
Where is my input processed?
The bundled tool processes input in your browser. It does not upload tool input to a conversion service. Other site plugins, analytics, advertising and browser extensions may have separate behavior.
Useful next tools
Explore other tools
Open a tool below, use the search, or choose a category to browse its full collection.
- JSON Formatter and Validator
Validate JSON syntax, format with two or four spaces, or minify it for copying and downloading. Works with pasted JSON in your browser.
- SQL IN List Builder
Convert a list of lines into a SQL IN (...) fragment. Quote text safely for the fragment, preserve leading zeros or select numeric values.
- CSV to JSON and JSON to CSV Converter
Convert CSV tables to JSON arrays or JSON arrays of objects to CSV. Supports comma, semicolon and tab delimiters, quotes and multiline cells.
- Unix Timestamp Converter
Convert Unix seconds or milliseconds to ISO dates and readable time zones. Convert ISO dates back to Unix timestamps.
- UUID v4 Generator
Generate one or up to 1000 random UUID v4 identifiers in your browser. Copy the list or download the values as a text file.
- URL Encoder and Decoder
Encode or decode URL text. Choose component mode for parameter values or full URL mode to preserve URL separators.
