JSON Formatter & Validator

Free online JSON formatter and validator. Pretty-print or minify JSON and find errors with their exact line and column.

Paste JSON above to check it.

How to use it

  • Paste your JSON: it is checked as you type. An error shows its line and column and what to fix.
  • Format indents the JSON so it is easy to read; Minify removes all spaces and line breaks.
  • Sort keys A–Z orders the keys of every object, which makes two JSON files easier to compare.
  • Numbers stay exactly as written, so formatting never rounds big numbers like IDs.
  • Common mistakes it explains: single quotes, a comma after the last item, comments and missing brackets.