Paste JSON to format it, check it for errors, or minify it. Everything runs in your browser, so private data and API responses stay on your device.

How It Works

  1. Add Your JSON: Paste it into the box, or drop a .json file onto it.
  2. Check the Result: The tool tells you straight away whether the JSON is valid. If it is not, it shows the error with its line and column.
  3. Choose a Style: Pick 2 spaces, 4 spaces, tabs, or minified output, and optionally sort object keys from A to Z.
  4. Copy or Download: Copy the result, or download it as a .json file.

Key Features

Frequently Asked Questions

Is my JSON sent to a server?

No. The formatting and checking happen in your browser with JavaScript, so you can safely format API responses or configuration that contains private data.

Why does my JSON show an error?

The most common causes are a missing or extra comma, single quotes instead of double quotes, keys without quotes, and comments. JSON allows none of these, even though JavaScript does. The error message shows the line and column where the problem was found.

What is the difference between formatting and minifying?

Formatting adds line breaks and indentation so people can read the JSON. Minifying removes them to make the file smaller for sending over a network. Both contain exactly the same data.

Are very large numbers kept exactly?

Not always. Numbers larger than 9,007,199,254,740,991 lose precision when JSON is read in a browser, so very large IDs can change slightly. Store large IDs as strings to keep them exact.

JSON Formatter & Validator

Format, Minify, and Check JSON

You can also come chat with us on the Stoic Dreams discord server.

If this tool saved you time today, please consider supporting the project via [GitHub Sponsors](https://github.com/sponsors/StoicDreams). Every contribution helps me build more utilities for the community. About Ap Tul Contact Stoic Dreams Privacy Terms & Conditions