JSON Formatter
The ultimate JSON tool. Format, validate, convert, diff, query, generate types, and more.
What is JSON?
JSON (JavaScript Object Notation) is a lightweight, text-based data interchange format that represents structured data as nested objects, arrays, strings, numbers, booleans, and null. Standardized as ECMA-404 and RFC 8259, it has been the dominant format for REST APIs, configuration files, and inter-service communication on the modern web since the mid-2000s — because it's human-readable, language-agnostic, and trivial to parse in every major programming language. This formatter validates, beautifies, and minifies JSON, converts it to YAML, CSV, XML, and SQL, generates types for ten languages, runs JSONPath queries, and diffs documents — all in your browser. Need to swap to YAML for a config file? Use the JSON to YAML tool. Generating sample data? Try the Sample JSON Generator.
Input
Paste JSON, drag a file, or load a sample
Output
Formatted
Tree
Table
Graph
Diff
How to use this tool
- 1Paste or load your JSONDrop JSON into the Monaco editor, paste from your clipboard, or load a file. The editor validates and reports syntax errors live.
- 2Pick a view or transformationSwitch between tree, table, and graph views to explore the structure, or use conversion tabs to output YAML, CSV, XML, SQL, or generated types.
- 3Query, diff, or exportRun JSONPath expressions to extract subsets, validate against a JSON Schema, diff two documents, or copy the formatted result.
