jump totool workspace
ToolHub

JSON formatter

From formatting to querying, repairing and verifying, keep your data in order.

Runs the entire process locally
views
—
favorites
—
sample.json· Current session
More ⋯
Enter JSON
$ › Input document
11 lines · UTF-8Loading…
$ › root484 B
29 lines · UTF-8Read only results
✓ JSON is validobject · 19 keys · depth4 · 484 B·Compression319 B

Ctrl / ⌘ Enter format·Ctrl / ⌘ F Find and replace·Ctrl / ⌘ Z Undo·Processed locally only, input is not uploaded or automatically saved.

Tool description and FAQ

Tool Guide

01Steps from input to export

Paste JSON, open a local file, or load a sample to see the results instantly. Adjust the output using formatting, compression, indentation or sorting keys; finally copy the results or choose the export format via the download popup. The original input is not overwritten by formatting.

02Choose text, tree, table or graph

Text is suitable for editing and searching; tree shape is suitable for layer-by-layer expansion; tables are suitable for comparing records in arrays; graphs are suitable for observing the relationship between objects and arrays. On your phone, first switch to "Results" and then select a view. Preview switching does not change the original data.

03Explore, reset and expand the graph

After clicking a node, the corresponding JSONPath is displayed at the bottom, and the complete JSON of the path or node can be copied. Direction, node number, value node switch, reset and copy are concentrated in the bottom toolbar. "Full screen preview" pops up an independent canvas, and the Esc or close button returns; "Reset view" restores automatic layout and scaling.

FAQ

Q1Do formatting and compression change data content?

Valid JSON values and numeric precision are preserved, and formatting and compression mainly adjust for whitespace. Turning on sorting will adjust the order of object keys; the writing method of string escape may be standardized, so there is no guarantee that the output is the same as the original text byte by byte.

Q2What to do when JSON cannot be formatted?

Click "Locate Error" to return to the input area and check the quotation marks, commas and brackets near the error lines; you can also generate a repair preview first. Please check manually for duplicate keys, split the data if size or nesting limits are exceeded, and do not rely on repair to bypass restrictions.

Q3Why doesn't the graph or table show everything?

This is a preview limit, not a truncation of the original data. Maps also wrap simple fields into object cards in compact mode. You can open the value node, use JSONPath to narrow the range, or switch back to text viewing; the download pop-up window exports the complete current results.