Loading your toolkit…

JSON formatter

Privacy and drafts

Input and output are processed in your browser, without uploading them.

  • Drafts stay in this tab while you switch tools or return home. Reloading or leaving clears ordinary drafts. Nothing is saved to browser storage. A dot beside a tool marks an edited draft.
  • Copy puts the result on your clipboard. Download saves a file to your device. Clearing a tool does not erase those copies.
  • Share puts the content in a link. Anyone with it can view that content. It lives in the link’s # part, which is not sent to the server; Bearaujus does not store the link. Reopening or reloading it restores the shared content.

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

How to use
Copies a link containing this result. Anyone who opens the link can see it. The link is not saved on Bearaujus.
OptionsPretty · 2 spaces

Ready to validate JSON.

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

How to use

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

  2. Choose Pretty and an indentation size (2 spaces by default), 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).

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.