JSON Formatter & Validator

Paste messy or minified JSON to make it readable, or check whether it’s valid. If there’s a mistake, you’ll see exactly which line and column is wrong and why — a missing comma, a trailing comma or single quotes. Your JSON never leaves your browser, so it’s safe for API keys and private data.

Runs in your browser — your data never leave your device
Your JSON is processed in this browser only.

How to use the JSON Formatter & Validator

  1. Paste your JSON into the input box, or open a .json file.
  2. Choose Format (2 spaces, 4 spaces or tabs) or Minify.
  3. If the JSON is invalid, read the error and jump to the exact line.
  4. Copy the result or download it as a .json file.

Features

  • Pretty-print with 2 spaces, 4 spaces or tabs
  • Minify to a single line for smaller payloads
  • Exact line and column for syntax errors, in plain English
  • Sort keys alphabetically (deep) for easy comparison
  • Shows size, depth and number of keys

Supported formats

Input: JSON text or .json file · Output: formatted or minified JSON

Privacy

This tool runs entirely in your web browser using your device’s own processing power. Your data are not uploaded to NovaTools or to anyone else, and nothing is stored on a server. You can even disconnect from the internet after the page loads and keep working.

Good to know

  • Very large files (over about 50 MB) may be slow in older browsers.
  • Comments and trailing commas aren’t valid JSON; the validator reports them as errors (JSON5 isn’t supported).

Frequently asked questions

Why is my JSON invalid?
The most common causes are a missing comma between items, a comma after the last item, single quotes instead of double quotes, or unquoted keys. The validator shows the exact line and column of the first problem.
Is it safe to paste API responses or tokens here?
Yes. Formatting and validation run entirely in your browser — nothing is uploaded or logged.
What does minify do?
It removes all spaces and line breaks that aren’t needed, producing the smallest valid JSON — useful for configs and network payloads.
Does sorting keys change my data?
No. Objects in JSON are unordered, so sorting keys only changes their display order. Array order is never changed.

Last updated 30 November 2026