JSON formatter and validator

Paste your JSON to make it readable, find the exact spot where it breaks, or shrink it to a single line.

Sealed on this device

Runs in your browser. Nothing is uploaded.

Sealed

Result

Your formatted JSON will appear here as you type.

How it works

  1. Paste your JSON

    Paste it, type it or open a .json file. Formatting starts as soon as there is something to read.

  2. Fix what’s broken

    If the JSON is invalid, you see the line, the column and a plain explanation. One click puts your cursor on the problem.

  3. Choose the shape

    Pick formatted, minified or tree view, set the indentation, sort the keys, then copy or download the result.

Frequently asked questions

Is my JSON sent to a server?

No. Parsing and formatting run entirely in your browser, so API responses, configuration files and tokens never leave your device.

Why does my JSON say it’s invalid when JavaScript accepts it?

JSON is stricter than JavaScript. Keys and text need double quotes, trailing commas and comments aren’t allowed, and values like undefined or NaN don’t exist. The error message names the rule that was broken.

Will formatting change my numbers?

No. Numbers and escaped characters are kept exactly as you wrote them, so very large integers and long decimals are not rounded the way JSON.parse would round them.

What does “Sort keys” do?

It orders the keys of every object alphabetically, at every level. Arrays keep their order, because the order of array items is part of the data.

Can it handle large files?

Yes. Files of several megabytes format in a moment. The tree view opens one level at a time and shows long lists in batches, so the page stays responsive.

Install One For All on your computer

One For All then opens in its own window, like an app, straight from your desktop or home screen. Nothing to download from a store, and your files still stay on your device.

  1. Click the install icon at the right of the address bar, or open the browser menu (⋮).
  2. Choose “Install One For All” or “Install page as app”: a shortcut is added to your desktop and your apps.

Download this tool’s engine?

This tool works entirely in your browser. To do that, it needs to download the items below from One For All, just once. They are then kept on this device, so next time the tool starts right away.

Your files are never sent anywhere.