Skip to content
Work data is processed in your browser, not stored on our servers.
tools
JSON Formatter and Validator

JSON Formatter and Validator

Format, minify, sort, and validate JSON with clear syntax error locations.

0 B
0 B

Key features

  • Formats JSON with 2-space, 4-space, or tab indentation.
  • Minifies valid JSON into a single line.
  • Sorts object keys alphabetically for deterministic output.
  • Shows the line and column for JSON syntax errors.

How to use

  1. Paste JSON into the input field.
  2. Choose Format, Minify, or Sort Keys.
  3. Copy the result or download it as a .json file.

Examples

  • Read an API response

    Indent minified JSON to inspect its nested structure quickly.

  • Normalize JSON before a diff

    Use sorted keys and consistent indentation to create comparison-friendly output.

Privacy

JSON parsing, formatting, and download-file creation run in your browser.

Common questions

Does it show where invalid JSON fails?
It displays the parser error and, when available, a line and column to help locate a bad comma or quote.
Can object keys be sorted?
Yes. Sort keys recursively, then output with two spaces, four spaces, tabs, or as one minified line.