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