Home Text Tools Encoding Hashing Generators Developer Converters Text Styles Image Tools

JSON FormatterPrivacy: All processing runs locally

Format, tree view, diff, query (JSONPath & JMESPath), flatten, sort, generate schemas. Handles 50MB+ files.

Input
Output
Click a node to see its path
Result
Examples
JSONPath: $.users[0].name · $.users[*].email · $.users[?(@.age>30)] · $..name
JMESPath: users[0].name · users[*].email · users[?age>`30`].name · length(users)
Left (Original)
Right (Modified)
Input (uses Format tab data, or paste below)
Result
Input (uses Format tab data, or paste below)
Generated JSON Schema

How It Works

The JSON Formatter is a comprehensive client-side tool for working with JSON data. All processing happens in your browser using native APIs.

Format — validates, formats, and minifies JSON with syntax highlighting. Supports large files (50MB+) via chunked processing.

Tree View — interactive collapsible tree with virtualized rendering for smooth scrolling of large documents. Search keys and values, right-click to copy paths.

Query — supports JSONPath ($.store.book[*].author) and JMESPath (users[?age>`30`].name) for extracting data from JSON.

Diff — compares two JSON documents recursively, showing additions (green), removals (red), and changes (yellow) with the path to each difference.

Transform — Sort keys recursively, flatten nested objects to dot-notation, or unflatten back to nested structure.

Schema — auto-generates a JSON Schema from your data by analyzing types, required fields, array item types, and nested structures.