UtilDojo

Popular

Menu

JSON Formatter & Beautifier Online

  • This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.

Input

Tab indents · Shift+Tab outdents · Esc then Tab moves on

Your formatted JSON shows up here

Paste or type on the left, upload a file, or drop one onto the input.

Waiting for JSON

JSON & data

About this tool

Paste, type or drop a .json file and get a cleanly indented version as you type. Choose 1 to 8 spaces or tabs, switch to Minify for the smallest payload, or turn on Sort keys to order every object alphabetically, which is handy before comparing two API responses.

If the JSON is invalid, the result shows the exact line and column with a caret, plus a plain explanation of what is wrong and how to fix it. For text that is almost JSON, such as a JavaScript object, a Python dict, a config file with comments or output that was cut off, switch on Repair. It fixes trailing commas, single quotes, unquoted keys and comments, and lists every change it made.

Your data comes back exactly as you wrote it: big numbers, 1.0 and 1E3 are not rewritten, and duplicate keys are kept and flagged. Switch the result to Tree to expand and collapse nodes, filter by key or value, and copy the path of any node, such as $.orders[0].total.

Everything runs in your browser, so tokens and customer records never leave your machine. A share link puts the JSON inside the link itself (after the #), so nothing is stored on a server.

Frequently asked questions

Is my JSON uploaded anywhere?

No. Formatting, repair and the tree all happen in your browser and nothing is sent to a server. A share link carries the JSON in the part of the address after the #, which browsers never send to a server, but anyone who has the link can read it.

Why does it say my JSON is invalid?

Common causes are trailing commas, single quotes instead of double quotes, unquoted keys and comments, none of which are allowed in standard JSON. The result pane explains the problem and shows where it is. When it can be fixed automatically, a Repair this JSON button appears.

When should I use Repair?

When your text is not quite JSON: a JavaScript object, a Python dict, a config file with comments, or output that got cut off. Repair fixes the usual mistakes and lists each change. Valid JSON is never altered, but Repair accepts things a strict parser would reject, so leave it off when you need to check that something is strictly valid.

Does formatting change my numbers or data?

No. Numbers and strings are written back exactly as you typed them, so 1.0 stays 1.0 and 12345678901234567890 stays exact. Duplicate keys are kept and flagged. Only whitespace changes, plus the order of keys if you turn on Sort keys.

What is the difference between beautify and minify?

Beautify adds line breaks and indentation for readability. Minify removes all optional whitespace to make the payload as small as possible for storage or transfer.

Read the guide

Related tools