Minitooler

Format and validate JSON

Format, validate, minify, and sort JSON with clear error messages pointing to the exact line and column — free, private, and 100% in your browser.

Free tier: up to 10.00 MB per file. Pro removes the cap.

Output will appear here.

What people use it for

  • Debug an API response by pasting it in and getting readable, indented JSON.
  • Validate a config file before shipping and see the exact line of a syntax error.
  • Minify JSON before embedding it in a URL, header, or environment variable.
  • Sort keys alphabetically to get a clean diff between two JSON files.
  • Clean up JSON copied from browser DevTools, curl output, or a webhook log.
  • Format package.json, tsconfig.json, or eslint.config.json to a consistent style.

Our free JSON formatter lets you format, validate, and minify JSON online without uploading a single byte. Paste any JSON — an API response, a config file, a webhook payload — and get instantly readable, indented output, or a minified single-line version ready to drop into a URL, header, or environment variable.

It doubles as a JSON validator: invalid input gets a clear error message pointing to the exact line and column of the problem, so you can find a missing comma or unclosed bracket in seconds. Toggle alphabetical key sorting for deterministic diffs, switch between 2-space, 4-space, and tab indentation, and download the result as a .json file.

Because everything runs locally, it is a safe way to pretty-print JSON containing API keys, customer data, internal configs, or anything else you would rather not paste into a random online JSON viewer. It is the fastest way to beautify JSON, minify JSON, or check whether a file is valid JSON without opening an editor or writing a script.

How it works

  1. 1

    Paste or drop your JSON

    Paste directly into the box, or drop a .json file. It stays on your device.

  2. 2

    Pick pretty or minified

    Choose indent size, sort keys alphabetically, or switch to minified single-line output.

  3. 3

    Copy or download

    Grab the formatted JSON via clipboard or download it as a .json file. Invalid input gets a line-and-column error.

Frequently asked questions

No. Parsing, formatting, and validation all happen in your browser with the native JSON engine — nothing leaves your device.

Want this converter on your website?

Pro members can embed any Minitooler converter on their own site — styled to match, with no branding beyond a small credit link. One iframe, unlimited use, still 100% in the browser.

Unlock embeds — $5/mo
Accent color
Theme
Background
Text color
Width
Height
Embeds are a Pro feature

Upgrade to unlock a customizable iframe snippet you can paste into any website — colors, theme, and size all tuned to match your brand.

Go Pro — $5/mo