A complete JSON toolkit in your browser
JSON (JavaScript Object Notation) is the language of modern software. APIs, configuration files, databases, logs and AI tools all speak it. These tools cover the whole lifecycle of working with JSON: checking it, reading it, fixing it, reshaping it and converting it to other formats. Everything runs locally, so production data, access tokens and customer records never leave your device.
Which tool do I need?
| I want to… | Use |
|---|---|
| Make minified JSON readable | JSON Formatter |
| Check whether JSON is valid | JSON Validator |
| Repair broken JSON (quotes, commas, comments) | JSON Fixer |
| Explore a large document | JSON Viewer or JSON Navigator |
| Edit JSON with highlighting | JSON Editor |
| Find differences between two versions | JSON Compare |
| Query specific values | JSONPath Tester |
| Shrink a payload | JSON Minifier |
| Remove nulls and empty values | JSON Cleaner |
| Open in Excel or Google Sheets | JSON to Excel or JSON to CSV |
| Turn a spreadsheet into JSON | Excel to JSON |
| Generate code models | See "JSON to code" below |
| Inspect a login token | JWT Decoder |
Converting JSON to other formats
| Target | Best for | Tool |
|---|---|---|
| YAML | Kubernetes, CI pipelines, Docker Compose | JSON to YAML |
| TOML | Rust, Python packaging, Hugo | JSON to TOML |
| XML | SOAP, enterprise and legacy systems | JSON to XML |
| CSV / TSV | Spreadsheets, databases, data science | JSON to CSV, JSON to TSV |
| HTML table | Reports, emails, CMS pages | JSON to HTML |
| JSON Lines | BigQuery, ML datasets, logs | JSON to JSON Lines |
| Base64 / URL-encoded | Headers, URLs, env vars | JSON to Base64, JSON URL Encode |
JSON to code: models in 16 languages
Paste a real API response and get typed models in your language, with nested types, optional fields and correct key mappings inferred from the data:
| Language | Output | Tool |
|---|---|---|
| TypeScript | interfaces or type aliases | JSON to TypeScript |
| JavaScript | JSDoc typedefs or ES classes | JSON to JavaScript |
| Python | dataclass, Pydantic v2 or TypedDict | JSON to Python |
| Java | POJOs with getters and setters | JSON to Java |
| C# | classes or records (System.Text.Json / Newtonsoft) | JSON to C# |
| Go | structs with json tags | JSON to Go |
| Rust | serde structs | JSON to Rust |
| Kotlin | data classes (kotlinx / Gson / Moshi) | JSON to Kotlin |
| Swift | Codable structs | JSON to Swift |
| Dart / Flutter | classes with fromJson / toJson | JSON to Dart |
| PHP | PHP 8 classes, or array literals | JSON to PHP Class, JSON to PHP Array |
| Ruby | classes or Structs | JSON to Ruby |
| C++ | structs for nlohmann/json | JSON to C++ |
| Scala | case classes (circe / Play) | JSON to Scala |
| Elixir | structs with typespecs | JSON to Elixir |
| Protobuf | proto3 schema | JSON to Protobuf |
The five rules of valid JSON
- Keys and strings use double quotes:
"name", never'name'. - No trailing commas after the last item.
- No comments.
- Only
true,false,null, numbers, strings, arrays and objects are allowed; there's noundefined,NaNor dates. - Special characters in strings must be escaped:
\",\\,\n.
Most "invalid JSON" errors break one of these rules. Read our guide How to Validate and Format JSON for examples and fixes.