Loading your toolkit…

JSON formatter

How to use Processed in your browser

Validate JSON, then make it readable or compact. Number precision and key order are preserved.

1 lineLn 1, Col 1
Editable source0 / 500,000
1 lineLn 1, Col 1
Read-only result0 characters

Automatic updates · Ctrl / ⌘ Enter to run · Files stay local · Drafts stay in this tab

Privacy & draft storage

Tool input and output stay in your browser. Neither is uploaded or saved by the toolkit.

  • Copy writes the result to your device’s clipboard. Save downloads a file to your device.
  • Switching tools or returning home keeps drafts in this tab’s memory.
  • Reloading or leaving the toolkit clears drafts. Nothing is saved to browser storage.

Clearing a tool does not erase a copy already on your clipboard or a file you saved. A dot beside a tool marks an edited draft.

How to use

JSON formatter
  1. Paste JSON or open a local UTF-8 file in Input.

  2. Choose Pretty and an indentation size, or Compact to minify it.

  3. Review validation feedback, then copy or save the formatted output.

Formatting without changing your data

Number precision and key order are preserved. Formatting does not change values inside strings.

  • Pretty adds indentation and spacing.
  • Compact removes unnecessary whitespace.
What input is supported?

Use standard JSON with double-quoted keys and strings. Comments and trailing commas are invalid JSON. See the JSON specification (RFC 8259) (opens in a new tab).

Tool limits: 500,000 UTF-16 code units of input and 1,000,000 of output. Processing runs in a browser worker.

Edited draft in this tab. Switching tools keeps it; reloading clears it.