JSON Converters

Convert JSON to and from CSV, YAML, XML, TypeScript types, Dart classes, and JSON Schema. Every converter runs entirely in your browser — your data never leaves your device.

JSON to CSV Converter

Paste a JSON array of objects and get CSV output instantly. Nested objects are flattened to dot-notation columns. Choose how arrays are handled — join with separators, explode into multiple rows, or serialize as JSON strings. Toggle the UTF-8 BOM for Excel compatibility. Everything runs in your browser.

JSON CSV

CSV to JSON Converter

Paste CSV data and get a JSON array of objects. The first row is treated as headers by default. Toggle type inference to automatically convert numbers, booleans, and null values. Supports comma, semicolon, tab, and pipe delimiters. Parsing runs in your browser using PapaParse.

CSV JSON

JSON to YAML Converter

Paste JSON and get formatted YAML output. Key order is preserved from the original JSON. The converter handles nested objects, arrays, Unicode strings, and special characters that require quoting in YAML. No data leaves your browser.

JSON YAML

YAML to JSON Converter

Paste YAML and get formatted JSON output. Multi-document YAML files (separated by ---) produce a JSON array. The converter handles anchors, aliases, Unicode, and all YAML 1.1/1.2 constructs supported by js-yaml. Everything runs locally.

YAML JSON

JSON to XML Converter

Paste JSON and get formatted XML output. Keys prefixed with @_ become XML attributes. The #text key maps to element text content. Arrays generate repeated child elements. You can customize the root element name and how array items are named. All processing is local.

JSON XML

XML to JSON Converter

Paste XML and get formatted JSON output. XML attributes are prefixed with @_ by default. You can control attribute prefixing, array detection, namespace handling, and whether tag values are parsed as numbers/booleans. All processing happens in your browser.

XML JSON

JSON to TypeScript & Types Generator

Paste a JSON object or array and get type definitions instantly. Choose from TypeScript interfaces, TypeScript type aliases, Zod schemas, Go structs, Pydantic models, or C# classes — all from the same page. When your input is an array of objects with varying keys, the converter infers which fields are optional. Toggle readonly properties for immutable types.

JSON Types

JSON to Dart Class Generator

Paste a JSON object and get a Dart model class with named constructor parameters, a fromJson factory, and a toJson method. Null safety is enabled by default — nullable fields (null values in the JSON) get the ? suffix. Nested objects become separate Dart classes. Everything runs in your browser.

JSON Dart

JSON Schema Generator (Draft 2020-12)

Paste a JSON object and get a JSON Schema (draft 2020-12) that validates it. The converter infers object types, string/number/integer/boolean/null, array item schemas, and required fields. Toggle additionalProperties to control whether extra keys are allowed. All processing is local.

JSON JSON Schema