JSON Formatter
Indent
2 spaces
4 spaces
Tabs
Sort keys
Inline short
Escape Unicode
JSONC
Guides ▾
↓ Download
Copy
JSONPath
Input
Output
Input
Open file
From URL
Transform ▾
Sample
Format input
Stringify
Clear
Pretty
Minify
Tree
Table
Stats
Validate
YAML
TOML
XML
CSV
JSON5
Query string
Schema
Paste JSON into the input, drop or open a file, or try the sample.
Load sample
Related tools
TS
JSON → TypeScript
TypeScript, Zod, JSON Schema, Go, Pydantic, Rust and C# types from sample JSON.
{✓}
JSON Schema Form
Paste a JSON Schema, get a live form, and validate data against it with every error listed.
SQL
SQL Formatter
Pretty-print SQL across MySQL, PostgreSQL, SQL Server, and more, with keyword casing and indent options.
gql
GraphQL Formatter
Format or minify GraphQL queries and schemas, and infer GraphQL types from a JSON response.
API
OpenAPI Viewer
Browse OpenAPI 3 and Swagger 2 specs: endpoints, schemas, example payloads and curl commands.
{;}
Code Beautifier
Beautify or minify HTML, CSS, and JavaScript — format messy code or shrink it for production.
Favorite