JSON1 / All tools
18 tools, no uploads
Every converter runs entirely in your browser. Your data never leaves the page, so you can paste production payloads without thinking twice.
Start here
JSON Formatter and Validator
Format, minify, validate, escape, and inspect JSON in a collapsible tree. The main workspace handles everything you do most often.
Formats
Move between JSON and the configuration formats it shares work with.
- JSONYAML
JSON to YAML
Convert JSON to YAML. Strings that would otherwise read as booleans, numbers, or nulls are quoted so the result parses back to the same value.
- YAMLJSON
YAML to JSON
Convert YAML to formatted JSON. Handles nested mappings, block and inline sequences, quoted scalars, and comments.
- JSONXML
JSON to XML
Convert JSON to indented XML. Arrays repeat the parent tag, nulls become xsi:nil, and keys that are not legal element names are sanitised.
- XMLJSON
XML to JSON
Convert XML to formatted JSON. Attributes become @name keys, repeated elements collapse into arrays, and mixed text lands under #text.
- JSONTOML
JSON to TOML
Convert JSON to TOML. Nested objects become tables, arrays of objects become table arrays, and everything else inlines.
- TOMLJSON
TOML to JSON
Convert TOML to formatted JSON. Tables, table arrays, dotted keys, inline tables, and multi-line arrays are all supported.
Tabular data
Flatten JSON into spreadsheet rows, or lift rows back into objects.
- JSONCSV
JSON to CSV
Flatten a JSON array into CSV. Nested objects become dotted columns, sparse records still line up, and cells containing delimiters are quoted.
- CSVJSON
CSV to JSON
Convert CSV to a JSON array of objects. Quoted fields, escaped quotes, and embedded newlines are parsed correctly, and numbers and booleans are typed.
Code generation
Turn a JSON sample into typed models. Every record is inspected, so optional fields and mixed types are detected rather than guessed from the first item.
- JSONTypeScript
JSON to TypeScript
Generate TypeScript interfaces from a JSON sample. Fields missing from some records are marked optional, and values that are sometimes null widen to a null union.
- JSONJava
JSON to Java
Generate Java classes with Jackson annotations from a JSON sample. Optional primitives are boxed, so an absent field stays distinct from zero or false.
- JSONGo
JSON to Go
Generate Go structs with JSON tags from a JSON sample. Optional fields become pointers tagged omitempty, so encoding/json can tell absent from the zero value.
- JSONPython
JSON to Python
Generate Python dataclasses with type hints from a JSON sample. Optional fields default to None and are ordered after the required ones, so the class compiles as written.
- JSONC#
JSON to C#
Generate C# classes with System.Text.Json attributes from a JSON sample. Properties are PascalCase with a JsonPropertyName holding the original key, and optional value types get a question mark.
- JSONRust
JSON to Rust
Generate Rust structs with Serde derives from a JSON sample. Optional fields become Option types, and any key that snake_case cannot reach gets an explicit serde rename.
- JSONKotlin
JSON to Kotlin
Generate Kotlin data classes with kotlinx.serialization from a JSON sample. A SerialName annotation is added only where the JSON key differs from the property name.
- JSONDart
JSON to Dart
Generate Dart classes with fromJson and toJson from a JSON sample. Every nested object gets its own class, so decoding a payload never leaves you holding a raw map.
- JSONSwift
JSON to Swift
Generate Swift structs conforming to Codable from a JSON sample. CodingKeys are emitted only when a key differs from its property name, so simple models stay readable.