JSON Formatter, Minifier & Validator

Format, beautify, validate and minify JSON. Errors show the exact line and column. Your data stays securely in your browser.

Recommended JSON & JavaScript Tutorials

How to format JSON online

Paste your JSON into the input box (or upload a .json file), pick the indent size, and click Format / Beautify. Use Minify to remove all extra spaces, and Sort keys to put object keys in alphabetical order.

Frequently asked questions

Is my data uploaded anywhere?

No. Everything runs in your browser, so your JSON never leaves your device.

Why is my JSON invalid?

The most common causes are trailing commas, single quotes instead of double quotes, keys without quotes, missing commas and comments. The tool shows the line and column of the first error, and the Go to error button jumps to it.

What does minify do?

It removes spaces and line breaks to make the JSON as small as possible, which is useful for APIs and storage.

Are there any limits?

Numbers larger than about 9 quadrillion (beyond JavaScript's safe integer range) may be rounded, and duplicate keys in one object are merged. Very large files depend on your device's memory.