FORMAT · ENTIRELY IN YOUR BROWSER
JSON Formatter
Untangle compact JSON responses with consistent indentation, or minify a document by removing unnecessary whitespace.
JSON Formatter workspace
LOCAL WORKSPACEYour converted data will appear here.
Table preview · up to 5 rows and 20 columns
A PRACTICAL EXAMPLE
See the transformation.
Input
{"project":"TidyFormats","formats":["JSON","CSV"],"private":true}Output
{
"project": "TidyFormats",
"formats": [
"JSON",
"CSV"
],
"private": true
}How to use JSON Formatter
- Paste or open your JSON document.
- Select 2 spaces, 4 spaces, tabs, or minified output.
- Format and copy or download formatted.json.
Minify JSON without removing spaces inside strings
Choose Minified to remove formatting around keys and values. Spaces within a string remain data and are preserved. Pretty-printing is the reverse presentation choice: use indentation to inspect a response or compare object structure.
Input
{
"message": "keep these spaces",
"items": [1, 2]
}Output
{"message":"keep these spaces","items":[1,2]}Common problems and how to fix them
Formatting reports an error instead of fixing it
The formatter does not guess missing values or punctuation. Correct the indicated syntax in the source, then format again. The original input remains available after an error.
Duplicate keys disappear
Parsing keeps the last value for a repeated object key. Resolve duplicates in the source before formatting if earlier values matter.
Can I use this to canonicalize or sign JSON?
No. This is a readability tool, not a canonicalization or cryptographic signing implementation. Re-serialization can change number spelling and property order.
Limitations and supported input
Strict JSON only. Comments and trailing commas are rejected. Duplicate object keys follow JavaScript JSON parsing behavior: the last value wins. Large numbers are subject to JavaScript precision limits.
Files must be UTF-8 text and no larger than 10 MiB. Very deep or complex documents may exceed the 15-second processing limit. JSON numbers use JavaScript precision; keep long identifiers as strings.
Your data stays on your device
All parsing and conversion happens in a local browser worker. Your input is not sent to a server or saved in browser storage. Closing or reloading the page clears this workspace. Read our privacy explanation.
GOOD TO KNOW
A little clarity.
Simple tools. Straight answers.
Does minifying change the data?
Minifying removes formatting whitespace, while parsing and serializing the data. Standard JavaScript number precision and duplicate-key behavior still apply.
Can I choose tabs?
Yes. Select Tab in the indentation setting.
KEEP THINGS MOVING