JSON Formatter
Format / ValidateFormat, minify, validate, escape, and unescape JSON.
Paste text on the left to see the cleanup in action.
Format, minify, validate, escape, and unescape JSON.
Paste text on the left to see the cleanup in action.
Input
Paste your messy text or data into the source field.
Options
Adjust tool settings to customize the transformation.
Result
Copy or download your clean results instantly.
Paste your raw JSON into the input field.
Select "Format" to pretty-print or "Minify" to compress the JSON.
If the JSON is invalid, a helpful error message will show the location of the issue.
Use "Escape" to convert JSON to a string safe for code, or "Unescape" to reverse it.
Standard tools at BetterPaste perform all processing locally in your web browser. Your data is never intentionally sent to our servers for processing.
{"id":1,"name":"test"}{
"id": 1,
"name": "test"
}Pretty-printing minified JSON.