Case Converter
Change text to UPPER CASE, lower case, Title Case, Sentence case and more in one click. This case converter also makes snake_case,…
Student toolsFree tool · Developer tools
Paste JSON into this JSON formatter to beautify it with 2 spaces, 4 spaces or tabs, minify it, sort keys and explore it as a tree. Errors show the exact line, column and a short explanation.
Everything runs in your browser. Nothing you type is sent anywhere, and it is cleared when you close this page.
Free · no sign-up · runs in your browser, nothing is uploaded
Need help fixing it?
Our developers check your site's speed, SEO and mobile experience and send you a short list of fixes. No charge, no obligation.
JSON is the format most APIs, apps and configuration files use to exchange data. Machines are happy with one long line, but people are not. This JSON formatter turns compressed JSON into neat, indented text that you can read, and checks that it is valid at the same time. When something is wrong, it points to the exact line and column and explains the mistake in plain words, such as a missing comma, a trailing comma or single quotes instead of double quotes.
The validator follows the JSON standard strictly. Comments, trailing commas, single quotes, unquoted keys, NaN, undefined and numbers with leading zeros are not allowed in JSON, even though JavaScript accepts some of them. The stats show the number of keys, the deepest level of nesting, the number of objects and arrays, the size, and any duplicate keys.
Numbers and text are written back exactly as you typed them. Many online tools convert JSON with JavaScript, which rounds very large numbers such as long IDs. This formatter keeps every digit.
Small JSON is checked as you type. For large input, a few megabytes or more, the tool waits until you press a button so that typing stays smooth. Files up to 20 MB can be opened, but very large files may be slow on older phones.
Your JSON is processed in your browser and never leaves your device. That makes the tool safe for API responses and configuration files, but as always, avoid pasting live passwords or secret keys into any website.
FAQ
JSON is stricter than JavaScript. Keys and text must use double quotes, and comments, trailing commas, NaN and undefined are not allowed. The error message tells you which rule was broken and where.
No. Only spaces and line breaks change. Numbers and strings are written exactly as they were, and keys keep their order unless you tick Sort keys.
Format adds line breaks and indentation so people can read the JSON. Minify removes every unnecessary space so the file is as small as possible for machines.
Files up to 20 MB can be opened. Inputs of a few megabytes work well on most computers; older phones may take a few seconds.
No. The formatter runs in your browser, and nothing is sent to our server.
More free tools
Change text to UPPER CASE, lower case, Title Case, Sentence case and more in one click. This case converter also makes snake_case,…
Student toolsLook up A, AAAA, CNAME, MX, NS, TXT and SOA records of any domain to check hosting, email and verification settings.
Website checksUse this age calculator to find your exact age in years, months and days as on any date, such as the cut-off…
Photo & form toolsTell us what you want to build. You get ideas, a timeline and a clear quote, free.