Free Online JSON Tools
Every tool on this site — all free, no sign-up, and 100% in-browser: your data never touches a server.
Format & Validate
Make JSON readable, check it against the standard, or shrink it for production.
JSON FormatterBeautify, validate and minify JSON with exact error locations — the full workbench.JSON ValidatorCheck JSON against RFC 8259 and get the exact line and column of every error.JSON BeautifierPretty-print JSON with 2, 3, 4-space or tab indentation for readable output.JSON MinifierCompress JSON to a single line and see exactly how many bytes you saved.JSON Schema ValidatorValidate a document against a JSON Schema — every violation with its path (draft-07 & 2020-12).
Explore & Transform
Navigate big documents, canonicalize key order, and handle escaped strings.
JSON ViewerExplore JSON in a collapsible tree, search keys and values, copy JSONPath.JSON SorterSort object keys alphabetically (A–Z or Z–A), recursively, for stable diffs.JSON EscapeEscape text so it is safe to embed inside a JSON string value.JSON UnescapeDecode escaped JSON strings back to plain readable text.JSON DiffCompare two JSON documents structurally — key order and formatting ignored, only real changes shown.JSONPath TesterEvaluate JSONPath expressions live — wildcards, recursive descent, slices, filters — with a cheat-sheet.JSON FlattenCollapse nested JSON into single-level dot-notation keys — for configs, env vars, spreadsheets.JSON UnflattenRebuild nested JSON from flat dot-notation keys — arrays restored from numeric segments.JSON AnalyzerProfile size, depth, key count, type breakdown and the largest fields of a JSON document.JSON to TableView a JSON array of objects as a sortable table — click to sort, copy as CSV.
Convert Formats
Move data between JSON and CSV, YAML, XML or TOML — both directions, lossless where the formats allow.
JSON to CSVTurn arrays of objects into spreadsheet-ready CSV — nested keys become dot-notation columns.CSV to JSONHeader row becomes keys, numbers and booleans typed automatically, delimiter auto-detected.JSON to TSVTurn arrays of objects into tab-separated values — pastes cleanly into Excel and Sheets, nested keys flattened.TSV to JSONPaste tab-separated data straight from a spreadsheet — header becomes keys, numbers and booleans typed.JSON to YAMLClean YAML for Kubernetes, CI pipelines and config files — lossless and readable.YAML to JSONSee what your YAML really parses to — with exact error positions for invalid input.JSON to XMLWell-formed, indented XML for SOAP endpoints and legacy interfaces.XML to JSONElements become keys, attributes are kept with an @_ prefix, repeated tags become arrays.JSON to TOMLIdiomatic TOML for Cargo.toml, pyproject.toml and tool configs.TOML to JSONRead any Cargo.toml or pyproject.toml as plain JSON data — spec-accurate.JSON to Base64Encode JSON as a compact, UTF-8-safe Base64 string — for data URIs, tokens and env vars.Base64 to JSONDecode Base64 back to formatted JSON — URL-safe input and missing padding handled.JSON to Query StringSerialize a JSON object into a URL query string — bracket notation for nesting, values encoded.Query String to JSONParse URL query params into JSON — bracket notation rebuilds nested objects and arrays.JSON to .envSerialize a JSON config object to .env lines — UPPER_SNAKE keys, __ nesting, values quoted when needed..env to JSONParse a .env file into a flat JSON object — comments, quotes and export prefix handled.JSON to JSON LinesTurn a JSON array into JSON Lines / NDJSON — one compact record per line for logs, BigQuery and jq.JSON Lines to JSONWrap newline-delimited JSON (NDJSON) back into a pretty-printed array — bad lines reported by number.HTML Table to JSONParse an HTML table into a JSON array of objects — header row becomes keys, numbers and booleans typed.
Generate Code & Commands
Turn a JSON sample into typed models for your language, or into a ready-to-run curl request.
JSON to TypeScriptGenerate TypeScript interfaces from a JSON sample — nested types, optionals and unions inferred.JSON to PythonGenerate Python dataclasses — typed fields, nested classes, Optional detection, snake_case.JSON to JavaGenerate Java POJO classes ready for Jackson or Gson — fields, getters, nested classes.JSON to GoGenerate Go structs with json tags — exported fields, pointers for nullables, idiomatic initialisms.JSON to C#Generate C# classes with PascalCase properties — for System.Text.Json and Newtonsoft.JSON to RustGenerate Rust structs with serde derives — Option<T> inference and rename attributes.JSON to KotlinGenerate Kotlin data classes with nullable-type inference — Android and backend ready.JSON to SwiftGenerate Swift Codable structs with CodingKeys and optionals — JSONDecoder-ready.JSON to cURLGenerate ready-to-run curl or wget commands from JSON — method, headers, auth, correct quoting.JSON to SQLGenerate INSERT statements from a JSON array — columns from keys, safe escaping, MySQL/Postgres.JSON to SQL SchemaGenerate a CREATE TABLE from a JSON array — column types inferred, NOT NULL and id primary key detected.JSON to Prisma SchemaGenerate a Prisma model from a JSON array — field types inferred, optional and id primary key detected.JSON to GraphQLGenerate GraphQL SDL types from a JSON sample — nested types, list types and non-null (!) inferred.JSON to ZodGenerate a Zod schema from a JSON sample — nested z.object(), optional/nullable inferred, plus a z.infer type.JSON to MongooseGenerate a Mongoose schema from a JSON sample — types, inline subdocuments and required inferred.JSON to JSON SchemaGenerate a JSON Schema (draft 2020-12) from a sample — types, nested properties and required inferred.JSON to MarkdownTurn a JSON array of objects into a GitHub-flavored Markdown table — pipes and newlines escaped.JSON to HTML TableTurn a JSON array of objects into semantic HTML table markup — thead/tbody, every value escaped.
Which tool do I need?
- “My JSON is one unreadable line” → Beautifier (or the Formatter, which also validates and repairs).
- “Is this JSON even valid? Where is the error?” → Validator — exact line and column, human messages.
- “I need it as small as possible” → Minifier, with a byte-savings report.
- “I need to find one field in a huge payload” → Viewer — searchable tree with JSONPath copying.
- “Two exports won't diff cleanly” → Sorter for canonical key order.
- “I have to embed text inside a JSON string” → Escape; got escaped text back? Unescape.
- “I need this data in another format” → converters for CSV, YAML, XML and TOML — each with a reverse direction back to JSON.
- “I want typed models for this API response” → code generators for TypeScript, Python, Java, Go, C#, Rust, Kotlin and Swift.
- “I need to call this API from the terminal” → the cURL generator; got a curl command and want its JSON back? Paste it into the Formatter — it extracts the body automatically.
All tools share one philosophy: fast, precise, private. The parsing engine reports errors with exact positions on every browser, dark mode is everywhere, and nothing you paste is ever uploaded.