Free · No sign-up · Runs in your browser

JSON Validator & Formatter

Paste your JSON to validate it as you type, then format, minify, sort or explore it as a tree. Errors are pinpointed by line and column.

Paste, drop or type your JSON

It’s checked as you type — nothing is uploaded.

Ctrl + V to paste · drop a .json file anywhere here

Drop your JSON file to load it
Waiting for input1 line0 B

Ctrl Enter ValidateCtrl Shift F FormatCtrl Shift M MinifyCtrl Z Undo

44 free JSON tools

Repair, convert, query, compare and generate code — every tool runs locally in your browser.

Validate & Format 8

View & Query 6

Convert 12

Code Generators 9

Schema & Compare 4

Encode & Decode 5

Everything you need to tame JSON

Built for developers, testers and data folks who want answers fast, without pop-ups or sign-ups.

Precise error detection

Live validation pinpoints the exact line and column, with clear explanations instead of cryptic parser messages.

Format & beautify

Pretty-print with 2 spaces, 4 spaces or tabs. Undo any change with Ctrl + Z.

Minify

Strip whitespace to shrink payloads before sending them over the wire.

Tree view

Explore deeply nested data as a collapsible tree. Large arrays load on demand.

Private by design

Your JSON never leaves your device. No uploads, no accounts, no tracking of your data.

Exact numbers

Big IDs and decimals like 1.10 are never rounded or rewritten — a problem with most online JSON tools.

Frequently asked questions

Can’t find what you’re looking for? Get in touch.

What is JSONPilot and what can I do with it?

JSONPilot is a free online toolkit to validate, format, minify, sort and explore JSON data. It helps developers, testers and analysts work with structured data faster and more accurately.

Is JSONPilot free to use?

Yes. JSONPilot is 100% free and needs no account. Paste or upload your JSON and get instant results.

Is JSONPilot secure for sensitive data?

Yes. All processing happens in your browser. Your JSON is never uploaded to a server, so it is safe to use with confidential data.

How do I format JSON online?

Paste your JSON into the editor, choose an indent size (2 spaces, 4 spaces or tabs) and click “Format”. You can also press Ctrl + Shift + F (⌘ + Shift + F on Mac).

How can I validate my JSON data?

JSONPilot validates as you type. If something is wrong, the status bar shows the exact line and column with a plain-English explanation, and the line is highlighted in the editor. Click “Go to error” to jump straight to it.

What causes JSON parsing errors?

The most common causes are missing or trailing commas, unquoted or single-quoted keys, single-quoted strings, comments, and values like undefined or NaN that are not part of the JSON standard.

How can I compress or minify JSON?

Click “Minify” to remove all unnecessary whitespace and line breaks. Minified JSON is smaller and faster to send over the network.

Can I upload large JSON files?

Yes. Click “Upload” or drag a .json file onto the editor. Files are read locally, so multi-megabyte files work well; the practical limit depends on your device’s memory.

Which formats can I convert JSON to and from?

CSV, Excel (.xlsx), YAML, XML and SQL in both directions, plus JSON to Markdown tables and flattened key paths. Every converter runs entirely in your browser, and large numbers such as 64-bit IDs are kept exact.

How do I fix broken JSON from ChatGPT or another LLM?

Paste it into JSON Repair. It removes the surrounding text and ```json fences, quotes keys, converts single quotes, removes trailing commas and comments, turns Python True/None into true/null, and closes truncated output — listing every fix it made.

Can I generate TypeScript types or classes from JSON?

Yes. The code generators turn a JSON sample into TypeScript interfaces, Python dataclasses or Pydantic models, Java, C#, Go, Kotlin, Swift, Rust or PHP types — with nested types, optional fields and correct number types.

How many tokens does my JSON use in GPT or Claude?

Use the JSON Token Counter. It gives exact counts for OpenAI tokenizers (GPT-4o and GPT-4), a labelled estimate for other models, and shows how much minifying saves.

Does JSONPilot change large numbers like IDs?

No. Most online tools use JavaScript’s JSON.parse, which silently rounds integers above 2^53 (12345678901234567890 becomes 12345678901234567000) and drops trailing zeros. JSONPilot keeps every number exactly as written in all of its tools.

How do I compare two JSON files?

Use JSON Diff. Paste both documents and it lists every added, removed and changed value by path. Formatting and key order are ignored, so only real data changes are shown.

How do I validate JSON against a schema?

Use the JSON Schema Validator. Paste your data and your schema; it supports drafts 04, 06, 07, 2019-09 and 2020-12, lists each error with the path to the failing value, and warns about misspelled keywords. You can also generate a schema from sample data.

What is JSON and why is it used?

JSON (JavaScript Object Notation) is a lightweight text format for exchanging data between servers and applications. It is easy for humans to read, easy for machines to parse, and the standard format for most web APIs.

Can JSON have comments?

No. Standard JSON does not support comments. Put documentation outside the JSON, or use a format such as JSONC or YAML where comments are allowed.

How do I parse JSON in JavaScript?

Use the built-in JSON.parse() method to turn a JSON string into a JavaScript value, and JSON.stringify() to turn a value back into JSON.

What’s the difference between JSON and YAML?

JSON is strict and simple to parse. YAML is a superset of JSON that is more human-friendly, supports comments and relies on indentation. Both are common for configuration files.

What is a JSON Schema?

A JSON Schema describes the expected structure of JSON data — required fields, types and allowed values. It is used to validate API payloads and keep data consistent.