New: Screen RecorderScreen + webcam, trim, save as MP4Try it now →

Add tools here by clicking the star icon.
Back to tools

JSON Formatter & Validator

Paste JSON to validate it as you type. Errors show the exact line and column; valid JSON can be pretty-printed, minified, sorted by key or explored as a tree.

Indent
Output

Press Format or Minify to see the result.

How to use it

  1. Paste your JSON.
  2. Fix any error using the line/column and highlighted character.
  3. Press Format (choose 2, 4 or tab indent) or Minify; optionally sort keys.
  4. Copy or download the result, or switch to Tree view.

Common Use Cases

  • Debugging API responses
  • Cleaning up config files
  • Minifying JSON for payloads
  • Comparing objects with sorted keys

Frequently Asked Questions

Will it validate JSON?▼
Yes, strictly, as you type. Invalid JSON shows the line, column and a short explanation, such as a trailing comma or single quotes.
Does it keep key order?▼
Yes, unless you tick Sort keys A–Z.
Why did a long number change?▼
JavaScript can only store whole numbers up to 2^53 exactly. The tool warns you when your JSON contains bigger numbers; keep them as strings if precision matters.

Why use this tool?

  • Precise error location in every browser
  • Format, minify and sort keys
  • Collapsible tree view
  • Warns when big numbers would lose precision

Privacy & Security

Your JSON is processed locally in your browser and never uploaded.

How was this tool?

Your feedback helps us make it better.

Have further opinions? Email me at hello@everythingbagel.app