
JSON Nerd
Free JSON tools. No sign-up, nothing uploaded.
JSON Nerd is a set of small, fast tools for working with JSON. Paste in some JSON, get the answer, and copy it out. Everything runs in your browser, so API responses, config files and other data never leave your device.
Format and check JSON
Use these when you have JSON that is hard to read, too big, or broken. Errors are reported with the exact line and column, so you can find a missing comma quickly.
- JSON formatter: Format, minify and validate JSON in one place.
- JSON validator: Check JSON syntax and find the exact line and column of an error.
- JSON beautifier: Pretty print JSON with 2 spaces, 4 spaces or tabs.
- JSON minifier: Strip whitespace to make JSON as small as possible.
Turn JSON into code
Paste a sample of the JSON you receive and get type definitions for your language, with nested types, optional fields and names that follow each language's conventions. Fields that hold different types become unions where the language supports them.
- JSON to Go struct: Generate Go struct definitions with json tags from a JSON sample.
- JSON to TypeScript: Generate TypeScript interfaces or types from a JSON sample.
- JSON to Python: Generate Pydantic models, dataclasses or TypedDicts from a JSON sample.
- JSON to Rust: Generate Rust structs with serde derives from a JSON sample.
Which tool should I use?
If you just want JSON to be readable, start with the formatter. If something will not parse, the validator points at the problem. The minifier is for the opposite job: squeezing JSON into the smallest form for a URL, a script or a payload. For the code generators, a realistic sample with every field filled in gives the best result.
Runs in your browser. Nothing you type is uploaded.