Json Tools
JSON Tools is a complete workbench for one document at a time: format, validate, minify and prettify, open a collapsible tree view, list every path, flatten or unflatten nested keys, sort an array or sort keys alphabetically, and measure the document's size and shape. Escaping and URL helpers move a JSON string safely through a query string, a log line or a form field.
The conversion half turns JSON into the shape another system expects: CSV, TSV, YAML, TOML, XML, JSON Lines, a Markdown table, a query string, or an escaped string. The code-generation pages produce typed classes and structs for Python, Go, Rust, Java, C#, Kotlin, Swift, PHP, Ruby, Dart, Flow, PropTypes, Crystal, Elm, Haskell and Objective-C, plus a JSON Schema or Protobuf schema from a sample.
These pages do not validate a schema against a document, call an API, or store the payload. They parse what you paste, report the first syntax error with a position, and return the transformed document. A JSON document that is not syntactically valid is refused rather than partially rewritten.
What you can do
- Format, validate, minify or prettify a JSON document and locate a syntax error.
- Inspect a tree, list every leaf path, and measure keys, depth and size.
- Flatten or unflatten nested objects, sort an array, or sort keys alphabetically.
- Convert JSON to CSV, TSV, YAML, TOML, XML, JSON Lines or a Markdown table.
- Generate a JSON Schema or Protobuf schema from a sample document.
- Generate typed classes for Python, Go, Rust, Java, C#, Kotlin, Swift and more.
Popular tasks
Every tool assigned to this category is listed here. The catalog's governance-domain filter is a different axis; to page through the same branch, use the filtered catalog.
Every Json Tools tool
Base64 to JSON
Decode Base64 back to a JSON document in your browser. URL-safe characters are accepted and invalid UTF-8 is reported.
CSV to JSON Converter
Convert CSV to JSON in your browser. Paste CSV, get JSON — real example, no upload, no signup.
Excel to JSON
Convert CSV or Excel spreadsheet data into JSON records.
JSON5 Formatter
Format JSON5 — comments, single quotes, unquoted keys and trailing commas — into strict, indented JSON.
JSON5 Validator
Check whether text is valid JSON5 and get a line and column when it is not. Handles comments, unquoted keys and trailing commas.
JSON Diff
Compare two JSON objects and list added, removed, changed keys.
JSON Editor
Validate, format, and minify JSON data.
JSON Escape
Escape a JSON String online. The conversion runs in your browser; nothing is uploaded.
Extract Values by JSON Path
Pull one value out of JSON by path in your browser: dotted keys with bracket indices, quoted names, optional leading $. Nothing uploaded.
Flatten a JSON Object
Flatten nested JSON into single-key paths such as user.address.city, with array indices included. Runs in your browser.
JSON Formatter
Validate, beautify, or minify JSON strings instantly.
JSON Lines to JSON Array
Turn newline-delimited JSON into one JSON array. Blank lines are skipped and a bad line is named by number.
Merge JSON Objects
Deep-merge JSON objects in your browser: later values win, nested keys combine, arrays concatenate. Non-objects are refused by name.
JSON Minifier
Minify JSON online. The conversion runs in your browser; nothing is uploaded.
List Every Path in a JSON Document
List every leaf path in a JSON document, such as $.user.roles[0], with its type and value. Runs in your browser.
JSON Prettifier
Prettify JSON online. The conversion runs in your browser; nothing is uploaded.
Validate JSON Against Schema
Validate a JSON document against a schema in your browser. Supported keywords are checked; the rest are listed as skipped, not passed.
Sort a JSON Array
Sort the elements of a JSON array in place: numerically for numbers, alphabetically otherwise, or by one field of each object.
Sort JSON Keys Alphabetically
Sort the keys of a JSON document recursively, at every depth, without changing any value. Runs in your browser.
JSON Stats Analyzer
Measure a JSON document: nesting depth, object and array counts, keys, values and how many bytes minifying saves.
JSON to Base64
Encode a JSON document as Base64 in your browser. The text is read as UTF-8 first, so non-ASCII content round-trips.
JSON to C++ Struct
Turn a JSON sample into a C++ struct in your browser. Absent and null fields stay distinct, and nothing is uploaded.
JSON to Crystal Class
Turn a JSON sample into a Crystal class in your browser. Absent and null fields stay distinct, and nothing is uploaded.
JSON to C# Class Converter
Turn a JSON sample into a C# class in your browser. Optional and nullable fields are kept apart, and nothing is uploaded.
JSON to CSV Converter
Convert JSON to CSV in your browser. Paste JSON, get CSV — real example, no upload, no signup.
JSON to Dart Class Converter
Turn a JSON sample into a Dart class in your browser. Optional and nullable fields are kept apart, and nothing is uploaded.
JSON to Elm Record Type
Turn a JSON sample into a Elm type alias in your browser. Absent and null fields stay distinct, and nothing is uploaded.
JSON to Flow Type
Turn a JSON sample into a Flow type in your browser. Absent and null fields stay distinct, and nothing is uploaded.
JSON to Go Struct Converter
Turn a JSON sample into a Go struct in your browser. Optional and nullable fields are kept apart, and nothing is uploaded.
JSON to Haskell Record
Turn a JSON sample into a Haskell data type in your browser. Absent and null fields stay distinct, and nothing is uploaded.
JSON to Java Class Converter
Turn a JSON sample into a Java class in your browser. Optional and nullable fields are kept apart, and nothing is uploaded.
JSON to JSON Lines Format
Turn a JSON array into JSON Lines: one compact value per line, ready for a log pipeline or a streaming importer.
JSON to JSON Schema Generator
Generate a draft 2020-12 JSON Schema from a sample: types, required keys, nested objects and additionalProperties false.
JSON to Kotlin Data Class
Turn a JSON sample into a Kotlin data class in your browser. Optional and nullable fields are kept apart, and nothing is uploaded.
JSON to Markdown Table
Convert a JSON array to a readable Markdown table.
JSON to Objective-C Class
Turn a JSON sample into a Objective-C class in your browser. Absent and null fields stay distinct, and nothing is uploaded.
JSON to PHP Class Converter
Turn a JSON sample into a PHP class in your browser. Optional and nullable fields are kept apart, and nothing is uploaded.
JSON to React PropTypes
Turn a JSON sample into a PropTypes object in your browser. Absent and null fields stay distinct, and nothing is uploaded.
JSON to Protobuf Schema
Generate a proto3 schema from a JSON sample in your browser. Nested objects become messages, arrays become repeated fields, and null is marked optional.
JSON to Python Converter
Turn a JSON sample into a Python dataclass in your browser. Optional and nullable fields are kept apart, and nothing is uploaded.
JSON to Query String
Turn a nested JSON object into a URL query string with bracket notation, such as a[b]=1&list[0]=x, fully encoded.
JSON to Ruby Class Converter
Turn a JSON sample into a Ruby class in your browser. Optional and nullable fields are kept apart, and nothing is uploaded.
JSON to Rust Struct Converter
Turn a JSON sample into a Rust struct in your browser. Optional and nullable fields are kept apart, and nothing is uploaded.
JSON to Escaped String
Turn a JSON document into one escaped string literal, ready to paste into an environment variable or a code assignment.
JSON to Swift Struct Converter
Turn a JSON sample into a Swift struct in your browser. Optional and nullable fields are kept apart, and nothing is uploaded.
JSON to text Converter
Convert JSON to text in your browser. Paste JSON, get text — real example, no upload, no signup.
JSON to TOML Converter
Convert JSON to TOML in your browser. Nested objects become tables, arrays of objects become table arrays, and null is refused rather than dropped.
JSON to TypeScript
Convert JSON objects into TypeScript interface definitions.
JSON to TSV Converter
Convert JSON to TSV in your browser. Paste JSON, get TSV — real example, no upload, no signup.
JSON to XML Converter
Convert JSON to XML in your browser. Paste JSON, get XML — real example, no upload, no signup.
JSON to YAML Converter
Convert JSON to YAML in your browser. Paste JSON, get YAML — real example, no upload, no signup.
JSON to Zod
Convert JSON objects to Zod schema definitions.
JSON Tree View
Show a JSON document as an indented tree with one line per value, container sizes, and array indices. Copy or print it.
JSON Unescape
Unescape a JSON String online. The conversion runs in your browser; nothing is uploaded.
Unflatten a JSON Object
Rebuild nested JSON from dotted paths. A level whose keys are exactly 0..n-1 is restored as an array. Runs in your browser.
JSON URL Decode
Turn a percent-encoded JSON document back into readable JSON. A malformed escape is reported, not silently dropped.
JSON URL Encode
Percent-encode a JSON document so it survives a query string or a form field. Every reserved character is encoded once.
JSON Validator
Validate JSON online. The conversion runs in your browser; nothing is uploaded.
JSON Viewer
Explore a JSON document as a collapsible tree: expand a branch, collapse it, then copy or download the formatted JSON.
Random JSON
Generate Random JSON in your browser. Values come from the platform CSPRNG when available; nothing is uploaded.
RSS to JSON Converter
Turn an RSS 2.0, RSS 1.0 or Atom feed into one JSON object with channel metadata and an items array. No upload.
Text to JSON Array
Turn a plain-text list into a JSON array of strings, one element per non-empty line. Runs in your browser.
TOML to JSON Converter
Convert TOML to JSON in your browser. Tables, array-of-tables, inline tables, dotted keys and every string form are parsed locally.
TSV to JSON Converter
Convert TSV to JSON in your browser. Paste TSV, get JSON — real example, no upload, no signup.
XML to JSON Converter
Convert XML to JSON in your browser. Paste XML, get JSON — real example, no upload, no signup.
YAML to JSON Converter
Convert YAML to JSON in your browser. Paste YAML, get JSON — real example, no upload, no signup.