JSON Tools
Validate, format, convert, and transform JSON data
Format, minify, and validate JSON in one place.
Fix broken JSON — trailing commas, single quotes, unquoted keys, and more.
Escape special characters in a string for safe embedding in JSON.
Unescape a JSON-encoded string back to human-readable text.
Convert a JavaScript object literal to valid, spec-compliant JSON.
Sort all object keys alphabetically (A→Z or Z→A), deeply nested.
Compare two JSON objects and highlight added, removed, and changed fields.
Run JSONPath expressions to extract data from JSON.
Flatten nested JSON into a single-level object with dot-notation keys.
Restore a flat dot-notation object back to a nested JSON structure.
Analyze JSON byte size, key count, nesting depth, and type breakdown.
Search for keys or values anywhere in a JSON document.
Convert JSON to YAML format.
Convert YAML to JSON format.
Convert a JSON array of objects to CSV rows.
Parse CSV and convert each row to a JSON object.
Convert JSON to well-formed XML with a configurable root tag.
Parse XML and convert it to JSON.
Convert JSON config objects to TOML format.
Generate SQL INSERT statements from a JSON array.
Generate TypeScript interfaces from JSON.
Generate Python dataclasses from JSON.
Generate Go structs with JSON tags from JSON.
Generate Java POJOs from JSON.
Generate C# classes from JSON.
Generate Rust structs with Serde from JSON.
Generate a Zod validation schema from JSON.
Validate JSON data against a JSON Schema (Draft 7/2019/2020).
Infer a JSON Schema from an example JSON document.
Decode and inspect JWT header, payload, and expiry.
Count GPT tokens in any JSON or text (cl100k_base encoding).