DevFormatter

JSON Tools

JSON (JavaScript Object Notation) is the most widely used data interchange format for web APIs, configuration files and browser storage. Its strict syntax — double-quoted keys and string values, no trailing commas, no comments — makes it fast to parse reliably across every programming language.

When a JSON document fails to parse, the error is almost always one of six issues: a trailing comma after the last item, a single-quoted string where double quotes are required, an unquoted key, an embedded comment, an invalid number (NaN or Infinity), or mismatched braces or brackets. DevFormatter's JSON Formatter and JSON Validator report the exact line and column of the error so you can fix it immediately.

For programmatic JSON querying, jq and JSONPath give you two complementary approaches: jq for pipeline-style transformation and shell scripting, JSONPath for declarative field extraction within application code. Both tools run in your browser with no installation required.

{ }

JSON Formatter

Flagship

Format, beautify, validate and minify JSON. Tree view, sort keys, find duplicates, load from URL.

✓

JSON Validator

Check JSON syntax and pinpoint the exact line and column of any error.

⇒

JSON Minifier

Strip whitespace and compress JSON to the smallest valid representation.

⇌

JSON to YAML

Convert JSON to clean, readable YAML instantly in your browser.

|>

jq Playground

Run jq 1.6 filter expressions against JSON data — no installation required.

$.

JSONPath Playground

Query JSON with path expressions like $.store.books[*].title.

Related: YAML Tools XML Tools