JSON Tools

Format, compare and convert JSON, or generate typed models for your code.

JSON Formatter & Validator

Pretty-print, minify and validate JSON with precise error locations.

JSON Diff Checker

Compare two JSON documents and list every added, removed or changed value by path.

JSON to TypeScript

Generate TypeScript interfaces from any JSON sample.

JSON to Go Struct

Go structs with json tags, omitempty on optional fields and pointers for nullable values.

JSON to Python Class

dataclasses, Pydantic models or TypedDicts — with field names that match the JSON keys exactly.

JSON to Java Class

POJOs with getters and setters, Java records or Lombok @Data, plus Jackson annotations where they are needed.

JSON to C# Class

C# classes or records for System.Text.Json or Newtonsoft, with nullable annotations and boxed List types.

JSON to PHP Class

PHP DTOs with typed properties or constructor promotion, nullable types and array docblocks for your IDE.

JSON to Rust Struct

serde structs with Serialize/Deserialize derives, snake_case fields and Option for anything nullable.

JSON to YAML Converter

Convert JSON to YAML for configs, Kubernetes and CI pipelines.

XML to JSON Converter

Convert XML documents to JSON, with attributes and arrays preserved.

JSON to XML Converter

Convert JSON objects and arrays to clean, readable XML.

TOML to JSON Converter

Convert TOML configs to JSON — or JSON back to TOML — with tables, arrays and datetimes intact.

YAML to JSON Converter

YAML configs to JSON or back — anchors, aliases, merge keys and multi-document streams resolved.

JSON Flatten / Unflatten

Flatten nested JSON to dot notation and reconstruct it.

Working with JSON

JSON (JavaScript Object Notation) is the standard data format for APIs, configuration files and structured logs. This collection covers the full workflow: validate and format raw payloads, convert between JSON and CSV, XML, YAML or TOML, generate typed code for TypeScript, Go, Python, Java, C#, PHP and Rust, and transform structures with flattening and diffing.

Why these tools are different

Every conversion runs entirely in your browser using native JavaScript — there is no server round trip. That means instant results, offline capability, and safety for confidential data such as API responses containing tokens or customer records.

FAQ

Which JSON tool should I start with?

If your JSON is unformatted or you suspect a syntax error, start with the Formatter & Validator — it reports the exact line and column of any error.

Can I convert JSON to Excel?

Use JSON to CSV: the output opens directly in Excel and Google Sheets.

Do you support JSON5 or comments?

Standard JSON only. Strip comments first, then format.