JSON Beautifier

JSON Stringify Online — JSON Document to String

Convert a valid JSON object, array or value into a quoted JSON string containing the compact document. Useful when an API expects JSON text inside a string field.

Input JSON
Output

Processed in your browser. The output is a JSON string containing your compact JSON document. Unescape it to recover the document.

Make the most of this tool

01

Paste valid JSON, not JavaScript source. The result is one JSON string value with escaped quotes and backslashes.

02

Stringify a document once. Unescaping the output returns the original compact JSON text.

03

If you only want to escape ordinary text, use the text escape tool. If you only want smaller JSON, use the minifier.

Frequently Asked Questions

What does JSON stringify output?

It produces one JSON string containing your compact JSON document. Quotes and backslashes are escaped so the document can be stored as a string value.

How is this different from escaping ordinary text?

Stringify first validates that the input is a JSON document. The escape tool can encode any plain text. Use Unescape to recover the document from the string.