JSON Formatter & Validator

Format, minify, validate, search, and inspect JSON with duplicate-key and parse-error details.

Workspace

Preparing the JSON tools…
Operation
0 characters0 / 2,097,152 bytes

Explore valid JSON

Search and JSON Pointer

Up to 100 search results

Use RFC 6901 paths such as /users/0/name. An empty pointer selects the root.

Guide

How to use

  1. Paste, open a file, load the sample, or type JSON.
  2. Choose Format, Minify, or Validate, then set indentation and optional recursive key sorting.
  3. Review parse errors and duplicate-key warnings, or search valid data and inspect a value with a JSON Pointer.
  4. Copy, download, or move the transformed result back into the input editor.
Help

Frequently asked questions

Can I choose the indentation?

Yes. Formatted output can use two, four, or eight spaces, or tabs.

Can it sort JSON keys?

Yes. Enable recursive key sorting to alphabetize keys at every object level without reordering arrays.

What happens when an object contains duplicate keys?

The formatter warns you and shows where each repeated key first appeared. Many JSON parsers keep only the final value, so duplicate keys should be reviewed before using the output.

What is a JSON Pointer?

A JSON Pointer identifies one value by its path. For example, /users/0/name selects the name property of the first item in a users array. Leave it empty to select the root value.

How large can the JSON input be?

The editor accepts up to 2 MB so formatting, validation, searching, and inspection remain responsive in the browser.