Skip to content

Format JSON

Turn a wall of JSON on one line into something you can actually read, laid out consistently. Or go the other way and strip it back down to the smallest it will go. The tree view lets you fold away the big parts so you can find what you came for.

How to use it

  1. 1 Paste your JSON or drop a .json file onto the page.
  2. 2 Choose a readable layout with the indent you like, or squash it to one line.
  3. 3 Optionally sort keys alphabetically to make two documents comparable.
  4. 4 Copy the result or download it as a file.

Formats this tool accepts

Each one has a reference page covering what it stores and where it is supported.

Questions about format json

Is my JSON sent anywhere?

No. It is parsed by the browser on your own machine. That matters because JSON pasted into an online formatter is very often an API response containing tokens, customer records or internal identifiers, and pasting that into a remote service is a real disclosure.

How large a file can it handle?

Documents of tens of megabytes are fine on a desktop machine. Beyond that the browser has to hold both the text and the parsed object graph in memory, so very large files may be slow. Newline delimited JSON is handled line by line and copes better with size.

What indent should I use?

Two spaces is the most common convention and keeps deeply nested documents readable. Tabs are supported if your project uses them. Minified output has no indentation at all and is what you want for transport rather than reading.

Does it work offline?

Yes, once the page has loaded once. The engine is cached by the browser, so you can turn off your connection, reload the page and keep working. That is a useful side effect of doing the processing locally rather than a separate offline mode you have to enable.

Is there a watermark or a paid tier?

No. There is no watermark, no sign-up, no daily cap and no paid tier that unlocks the real version. Running the work on your device means there are no per-file costs to recover.

Other data tools

Popular data conversions

Pairs people convert most often in this category, each on its own page.

All data conversions and formats