JSON Array Formatter

Choose how arrays are laid out. Compact mode keeps lists of simple values such as IDs, coordinates and tags on a single line. Expanded mode puts each item on its own line, which suits line-based diffs.

Input

The result will appear here.

Ready In: 0 B Processed locally

How to use the JSON Array Formatter

  1. Paste JSON containing arrays.
  2. Toggle Compact arrays on or off.
  3. 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.