JSON Formatter & Validator
Paste JSON to make it readable, check that it is valid, or shrink it to one line. If something is wrong, you see the exact line and column of the error.
🔒 Your files are processed on your device and are never uploaded.
How to use
- 1Paste your JSON or open a .json file.
- 2Choose 2 spaces, 4 spaces, tabs or Minify.
- 3Copy or download the result.
Frequently asked questions
What does “invalid JSON” usually mean?
Common causes are a missing comma, a trailing comma after the last item, single quotes instead of double quotes, or keys without quotes. The error box shows the line and column.
What does “Sort keys” do?
It orders the keys of every object alphabetically, which makes two JSON files easier to compare.
Is my data sent anywhere?
No. Everything runs in your browser, so your data stays on your device.
More free tools
Base64 Encode & DecodeEncode text or files to Base64, and decode Base64.Hash Generator (MD5, SHA-256…)MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files.Regex TesterTest regular expressions with live highlighting.JWT DecoderDecode JSON Web Tokens and check expiry and signature.URL Encode & DecodePercent-encode or decode text and URLs.UUID GeneratorGenerate random UUIDs (v4) or time-ordered UUIDs (v7).