Skip to content
PDFBoii

JSON Formatter

Validate a JSON file, then beautify it with 2-space indentation or minify it down to a single line.

Free, with no account needed. It runs in your browser, so your file never leaves your device.

Select JSON file

or drop it here · up to 25 MB

About JSON Formatter

JSON Formatter checks a JSON file and rewrites it either beautified, with two-space indentation, or minified, as a single line with no extra spaces.

Last reviewed

How to use it

  1. Select a .json file.
  2. Choose Beautify or Minify.
  3. Press the button and download the result.

When to use it

Good to know

Tips for a better result

Questions about JSON Formatter

How do I find the error in my JSON?
Run it through the formatter. The message gives the line and column where parsing stopped, which is usually where a comma, quote or bracket is wrong.
When should I minify JSON?
Before sending it over a network or storing it, when size matters more than readability.
How much does JSON Formatter cost?
JSON Formatter is free, and you don't need an account. It runs inside your browser, so it costs us nothing to run and there are no credits to spend.
Is my file kept after I use JSON Formatter?
Your file never leaves your device. JSON Formatter works inside your browser, so nothing is uploaded and there is nothing for us to keep.
Do I need an account to use JSON Formatter?
No. JSON Formatter works without an account or sign-up. Open the page, choose your file and download the result.
Does JSON Formatter work on a phone?
Yes. JSON Formatter runs in the browser on phones, tablets and computers, with nothing to install. A very large file can be slow on an older phone, because your own device does the work.
Is there a file size limit for JSON Formatter?
We set no upload limit, because nothing is uploaded: the limit is your device's memory. If your browser can't process a file, the page offers to process it on our servers instead. That uses credits and accepts files up to 25 MB.

Guides

Related tools