JSON formatter and validator
Paste JSON and have it formatted, minified or validated instantly. Errors show line, column and a plain explanation – and what you paste stays in your browser.
What you paste never leaves your browser and is never stored
Invalid JSON ·
Tree view is only available for files up to 5 MB.
Once the page has loaded, the tool also works without internet – try turning off Wi-Fi. The first visit needs an internet connection.
Online formatters with save and share buttons have leaked thousands of API keys, passwords and tokens: in November 2025 watchTowr found more than 80,000 saved JSON snippets that anyone could download. There is no save button here, and what you paste is sent nowhere.
Formatting runs in a Web Worker, so even a 50 MB file gets formatted without the page hanging. Numbers too large for JavaScript (above 2^53) are written out exactly as in the input – they are never rounded.
Source: BleepingComputer, 25 Nov 2025 · watchTowr Labs
How it works
- Paste JSON, choose a file, or drag it into the field.
- Choose Format (2 or 4 spaces or tab) or Minify – and optionally Sort keys.
- If there is an error, you see the line, column and cause. Trailing commas, single quotes and comments can be fixed with one click.
- Copy or download the result, and press Clear all when you are done.
Frequently asked questions
Is my JSON sent to a server?
No. Everything happens in your browser, and an automated test fails if the tool sends anything while you use it. The site has cookie-free visitor statistics and updates itself, but what you paste is never part of either.
Why is there no save or share button?
Because that is how secrets leak. Saved and shared links on online formatters have made thousands of keys and tokens public. Here the content lives only in the tab and disappears when you close it.
What happens to very large numbers, such as database IDs?
JavaScript cannot handle integers above 2^53 (9,007,199,254,740,991) exactly, so JSON.parse rounds them. This tool uses its own parser, warns you about such numbers and writes them out unchanged.
What can "Fix automatically" fix?
Only three common mistakes: trailing commas, single-quoted strings and comments (// and /* */). You are told exactly what was changed. Anything else you fix yourself.
See also
Found a bug or have an idea? Send an email
More tools in DevKit
- Base64 encoder and decoder Base64
- JWT decoder JWT decoder
- Hash generator Hash generator
- UUID and ULID generator UUID generator
- Unix timestamp converter Unix timestamp