JSON Formatter / Validator

Pretty-print, minify and validate JSON, with errors pointing to the exact position. Download the .json file. Free, private, in your browser.

In short: Pretty-print, minify and validate JSON — errors point to the exact position. Free to use in your browser — no sign-up.

What is JSON Formatter / Validator?

JSON Formatter / Validator pretty-prints JSON with indentation, minifies it, and validates it. When it finds a problem, it points to the exact position.

How to use this tool

  1. Paste your JSON into the input box.
  2. Choose Format, Minify or Validate, and set the Indent.
  3. If there is an error, read its position and fix the text there.
  4. Run it again until the result shows valid JSON.
  5. Copy the result, or download it with the .json button.

About this tool

JSON is the standard text format for data on the web. APIs send it, config files use it, and JavaScript reads it without extra work. Paste your data into the JSON input box and pick Format to spread it across indented lines that show the structure clearly, or Minify to strip every space and newline you do not need. The Indent setting picks how wide the indents are.

When the JSON is broken, the error message points to the character where the problem sits. The usual causes are single quotes where double quotes belong, a comma after the last item, or a key name with no quotes. The .json button saves the finished output as a file you can use straight away. Everything stays in your browser.

Frequently asked questions

What is JSON?
JSON, short for JavaScript Object Notation, is the standard text format for data on the web. APIs send it, config files use it, and JavaScript reads it without extra work.
Why does my JSON fail validation?
The usual causes are single quotes where double quotes belong, a comma after the last item, or a key name with no quotes. The error message gives you the character position to look at.
Can I download the formatted JSON?
Yes. The .json button saves the formatted output as a file you can use straight away.
What is the difference between Format and Minify?
Format spreads the JSON over indented lines so a person can see the structure. Minify strips every space and newline you do not need, giving the smallest text.
Does it change my data?
No. It changes only spacing and layout. The keys and values stay the same.
Is my JSON uploaded?
No. Formatting and validation happen in your browser.
Can it handle a large file?
Moderate files work well. Very large files may be slow in a browser tab.
Can it convert JSON to CSV?
This tool formats and validates JSON. For tables, use CSV to Excel after converting your data.

Related Text & Utilities tools