{}

JSON Formatter & Validator

Format, validate, minify, repair, and explore JSON — with TypeScript generation, JSONPath queries, tree search, flatten/unflatten, diff comparison, and deep analysis. Free, private, no signup.

Format & beautifyMinifyAuto-repairTree view + searchJSONPath queryTypeScript typesFlatten/UnflattenJSON DiffFile upload & URL fetch
Input JSON
Formatted output
{}Valid JSON will appear here with syntax highlighting

Complete JSON Toolkit — Feature Guide

Format & Beautify

Paste raw or minified JSON and get instantly indented, syntax-highlighted output. Choose 2 spaces, 4 spaces, or tabs. Errors are reported with exact line and column numbers.

Auto-Repair JSON

Automatically fixes trailing commas, single-quoted strings, unquoted keys, Python booleans/None, and JS-style comments — turning invalid JSON into valid JSON in one click.

🌳

Tree View + Search

Explore any JSON document with a collapsible tree. Click any key to copy its full JSONPath. Search filters matching keys and values across the entire document.

🔎

JSONPath Query

Run JSONPath expressions against your JSON and see the extracted values. Use $ as the root, dot notation for keys, [n] for indices, and * or .. for wildcards.

📘

TypeScript Types

Generates TypeScript interfaces from your JSON structure automatically. Paste an API response and get production-ready TypeScript types in seconds — no manual typing.

JSON Compare / Diff

Paste two JSON documents and compare them instantly. Every added key, removed key, and changed value is reported with its exact JSONPath location.

🔧

Flatten & Unflatten

Convert deeply nested JSON into a flat key-value map using dot notation (store.address.city) and back. Useful for Redis, .env files, and config management.

📊

Deep Analysis

Get a full structural report: max nesting depth, counts of all value types, unique vs. total key counts, size savings from minification, and a frequency chart of the most-used keys.

📁

File Upload & URL Fetch

Upload a .json file from disk with drag & drop, or paste a URL and fetch live JSON from any CORS-enabled API endpoint — no copy-paste needed.

Frequently Asked Questions

Related Developer Tools