JSON & Data Interchange
Format, validate, and convert between JSON, CSV, XML, YAML, TOML, GraphQL, and OpenAPI. Every transform runs in your browser.
Tools (39)
JSON Formatter
Format, validate, and explore JSON with a collapsible tree view.
JSON Minifier
Compress and minify JSON data by stripping all whitespace and line breaks to minimize payload size.
JSON Validator
Instantly validate JSON syntax, identify errors with exact line and column locations, and fix formatting bugs.
JSON to CSV
Convert JSON arrays and nested objects into clean, downloadable CSV spreadsheets in seconds.
JSON to XML
Convert JSON documents into clean, structured, and customizable XML markup instantly.
JSON to TypeScript
Generate strongly typed TypeScript interfaces and type aliases from sample JSON documents instantly.
JSONPath & JQ Query Evaluator
Test JSONPath expressions ($.store.book[*].author) against complex JSON payloads with instant match filtering.
JSON Schema Validator
Validate JSON documents against JSON Schema definitions using Ajv. Path-accurate structural error reports.
JSON Schema → Example
Generate sample JSON documents from a JSON Schema using defaults, enums, formats, and property heuristics.
CSV to JSON
Convert CSV tabular data into structured JSON objects or arrays with automatic type detection.
CSV/TSV Column Aligner
Turn raw CSV or TSV data into a plain-text table with aligned columns, like the Unix `column -t` command.
XML to JSON
Convert XML documents into readable, valid JSON objects with automatic type parsing and attribute preservation.
XML Formatter
Format, beautify, and validate messy XML files with custom indentation and instant syntax error detection.
YAML to JSON
Convert YAML configuration files into structured JSON documents (or JSON to YAML) instantly.
YAML to TOML Converter
Convert configuration files seamlessly between YAML and TOML formats with full data type preservation.
TOML to JSON
Convert TOML configuration files (Cargo.toml, pyproject.toml, Wrangler) into structured JSON documents.
TypeScript to JSON Schema Converter
Convert TypeScript interfaces and type definitions directly to valid Draft-07 JSON Schema specifications.
GraphQL Formatter & Minifier
Format, beautify, validate AST, and minify GraphQL queries, mutations, subscriptions, and SDL schemas.
GraphQL to TypeScript
Generate readable TypeScript interfaces, enums, unions, and scalar types from GraphQL SDL.
GraphQL to cURL
Turn a GraphQL operation (plus optional variables) into a ready-to-run curl command — entirely in-browser.
OpenAPI Formatter & Validator
Validate OpenAPI 3 and Swagger 2 documents, then format them as readable JSON or YAML.
Markdown Table Generator
Convert CSV, TSV, or JSON data into perfectly aligned GitHub-Flavored Markdown tables.
JSON to YAML
Convert JSON into clean, correctly quoted YAML for Kubernetes manifests, Docker Compose files, and CI configs.
JSON Diff
Compare two JSON documents structurally and see every added, removed, and changed value by path, ignoring key order.
JSON Repair
Fix broken JSON automatically: trailing commas, single quotes, unquoted keys, comments, Python literals, code fences, and truncated LLM output.
JSON Key Sorter
Sort JSON object keys alphabetically or naturally, at every level or just the top, and sort arrays of objects by a field.
JSON Stringify & Unstringify
Escape text into a JSON string, unescape it back, stringify a document for embedding, or decode double-encoded JSON.
JSONL to JSON Converter
Convert JSON Lines (NDJSON) to a JSON array and back, with the exact line number of any bad record.
YAML Validator
Validate YAML syntax with exact line and column errors, multi-document support, and warnings for values YAML 1.1 parsers read differently.
XML Validator
Check that XML is well-formed and get the error code, line, and column, plus document stats when it passes.
JSON to Zod
Generate Zod schemas and inferred TypeScript types from a JSON sample, with optional, nullable, and union fields detected across array items.
JSON to Go
Generate Go structs with json tags from a JSON sample: int64 and float64 detection, pointers and omitempty for optional fields, and Go-style initialisms.
JSON to Python (Pydantic)
Generate Pydantic v2 models, dataclasses, or TypedDicts from JSON, with snake_case fields, aliases for the original keys, and Optional where data can be missing.
JSON to Java
Generate Java records or POJOs from JSON with Jackson or Gson annotations, boxed types for nullable fields, and valid names for keys like class.
JSON to C#
Generate C# classes or records from JSON with System.Text.Json or Newtonsoft attributes, nullable types like long?, and required members.
JSON to Rust
Generate Rust structs with serde derives from JSON: Option<T> for optional fields, rename_all for camelCase APIs, and raw identifiers for keywords like type.
JSON to Kotlin
Generate Kotlin data classes from JSON for kotlinx.serialization, Moshi, or Gson, with nullable defaults for optional fields and backticks for keywords.
JSON to JSON Schema
Generate a JSON Schema from a JSON sample, with required fields, nullable types, and formats like email and date-time inferred from the data.
JSON Schema to TypeScript
Convert a JSON Schema into TypeScript interfaces and types, including $defs references, recursive schemas, enums, and nullable unions.
Cheat sheets
Guides
How we built a 100% client-side JSON formatter
Why Code Beautifier never uploads your JSON, how the browser-only architecture works, and what it costs to build a formatter this way.
Common JSON syntax errors and how to fix them
Trailing commas, single quotes, unescaped characters, BOMs, and NaN. The JSON parse errors developers actually hit, what causes them, and the exact fix for each.