Inspect, format, and debug JSON.

Guide

Input JSON

Editable source

Processed locally in your browser Limit 5 MB. Your input is processed in your browser and is not uploaded or sent to a server. Avoid pasting production secrets, access tokens, private keys, passwords, or sensitive customer data unless you understand the risk.

Formatted Output

Read-only formatted JSON

JSON Guide

JSON formatting, validation, and duplicate keys

Use this browser-based JSON formatter to make JSON easier to read, validate structure, inspect nested data, and understand common issues before using JSON in APIs, config files, logs, or developer workflows.

What JSON formatting does

Formatting parses JSON and writes it back with indentation and line breaks. It does not change valid data values, but it can normalize object key order as parsed by the browser and remove duplicate keys because the last value wins.

Validation and common errors

Valid JSON needs double-quoted keys and strings, matching braces and brackets, no trailing commas, and supported values such as strings, numbers, booleans, null, objects, and arrays.

Duplicate keys

Duplicate keys are risky because parsers usually keep only the last value. This tool warns about repeated keys in Inspector so you can review the source before formatting input removes duplicates.

Format vs minify

Formatted JSON is easier to read and debug. Minified JSON removes extra whitespace to make the output smaller for transport, embedding, or compact storage.

Tree and Inspector

The tree view helps navigate nested objects and arrays. Inspector summarizes validation, duplicate-key warnings, object counts, array counts, depth, total keys, and visible output size.

Privacy

JSON processing runs locally in your browser. The formatter, minifier, validator, tree view, and duplicate-key scanner do not send your JSON content to a server.