How to use the JSON Array Formatter
- Paste JSON containing arrays.
- Toggle Compact arrays on or off.
- Format and copy.
Features
- Compact arrays wrap back to one-per-line when they would exceed 80 characters
- Arrays of objects are always expanded
- Works on arrays at any depth
Supported input
Valid JSON (a top-level array or any document containing arrays).
Limitations
- The 80-character width is fixed.
Privacy
Everything this tool does happens in your browser. What you paste or open is never uploaded, stored, logged or used for advertising. Closing the tab discards it. Read the privacy policy.
Frequently asked questions
01Which layout is better for version control?
Expanded (one item per line). A change to one item then shows as a one-line change in git diffs.
02Is my data uploaded anywhere?
No. This tool runs entirely in your browser tab. Your input is never sent to our servers, stored, or logged. You can disconnect from the internet after the page loads and it keeps working.