Skip to the tool
GigaJSON

JSON Formatter

All tools
Guides Open GigaJSON

Paste JSON or open a file to format it. Choose 2 or 4 spaces, and sort the keys if you want. If the JSON is invalid, you get the line and column of the problem and a Repair button.

How to use it

  1. Paste JSON into the input, drop a file on it, or click "Open file".
  2. Pick the indentation (2 or 4 spaces) and whether to sort keys.
  3. Copy the formatted JSON or download it.

Read more: How to fix invalid JSON: the 10 most common errors

Private, and made for big files

This tool runs in your browser, in a background worker: nothing you paste or open is uploaded, and nothing is kept after you leave. JSON and XML input can be up to 1 GB, depending on available memory. Processing runs in a background worker; large analyses can take a minute or more. If your connection drops while you're here, the tool keeps working. When one tool isn't enough, GigaJSON opens your data with a tree, a table, JSONPath/JMESPath/jq queries, transforms, diff and history.

Questions

What does a JSON formatter do?

It rewrites JSON with consistent line breaks and indentation, so nested objects and lists are easy to read. The data stays the same.

Is my data uploaded?

No. The tool runs in your browser, in a background worker. Nothing you paste or open goes to a server, and nothing is kept after you leave the page.

How large a file can it handle?

JSON and XML input can be up to 1 GB, depending on memory. CSV/YAML input and JSON repair are limited to 128 MB. Formatting runs in a background worker. jq, text editing and text-based exports have separate limits, shown when you use them.

My JSON is invalid. What now?

The formatter shows the line and column of the error and offers "Repair". It fixes the usual problems: missing quotes or commas, trailing commas, comments and cut-off JSON.

All tools