JSON Convert Tool

Paste JSON to format, validate, convert or compare it. Everything runs in your browser.

Waiting for input
Result

Paste JSON and the formatted result will appear here

Errors show the exact line and reason. Single quotes, unquoted keys, trailing commas, comments and similar mistakes can be fixed in one click. In tree view, click a key to copy its JSONPath. Press Ctrl + Enter to use the result as input.

Your data never leaves your computer

All formatting and validation happen in your browser. Nothing you paste is uploaded to a server, so it is safe to use with sensitive JSON.

What you can do

  • Format, minify, or browse as a tree (click a key to copy its path)
  • Convert between JSON, YAML, CSV and URL query strings
  • Generate TypeScript interfaces and Java records from sample JSON
  • Filter with JSONPath, sort keys, remove null and empty values
  • Compare two JSON documents and list added, removed and changed fields

What is JSON

JSON (JavaScript Object Notation) is a text format for data made of key-value pairs and arrays. It is widely used to exchange data between browsers and servers or between services.

FAQ

Why do large numbers stay unchanged?

The tool keeps the numbers exactly as you typed them instead of converting them to JavaScript numbers, so values like 12345678901234567890 or 1.50 are preserved.

What does "Fix to standard JSON" change?

It converts single quotes to double quotes, quotes property names, removes trailing commas and comments, adds missing commas, and turns True, False and None into true, false and null.

What is an escaped JSON string?

JSON copied from logs or databases often looks like "{\"a\":1}". When the tool detects this, an Unescape button appears to turn it back into normal JSON.

How do I write JSONPath?

$ is the root. For example $.tools[0].id gets the first tool's id, $.tools[*].id gets every id, $..id finds ids at any depth, and $.tools[?(@.category == 'design')] keeps only items whose category is design.

How is nested data handled when converting to CSV?

Each object in the array becomes a row, nested objects are flattened into columns like a.b, and arrays are stored as JSON text in the cell. Converting CSV back to JSON rebuilds a.b columns into nested objects.