Skip to content

JSON tools

Everything for the JSON in front of you: pretty-print or minify it, query it with JSONPath, patch it, infer a schema, and turn it into types for TypeScript, Zod, Go, Python, Rust or Kotlin. Conversions to and from CSV, YAML and XML run in the browser, so payloads never leave your machine.

19 tools, free, in your browser

JSON Formatter & Validator

Format, validate and minify JSON with 2-space, 4-space or tab indents, alphabetical key sorting and line-numbered parse errors.

Formatters

JSON Sorter & Cleaner

Sort JSON keys A-Z or Z-A, remove nulls and empty values, deduplicate arrays, strip keys, and flatten or unflatten nested objects in one pass.

Developer utilities

JSONPath Tester

Test JSONPath expressions against JSON as you type, with filters and recursive descent, click-to-path on a JSON tree, and examples.

Developer utilities

JSON Patch Builder

Generate an RFC 6902 JSON Patch of add, remove and replace operations that turns a source JSON document into a target document.

Developer utilities

JSON Schema Generator

API

Generate Draft-07 or 2020-12 JSON Schemas from sample JSON for function calling, structured outputs and validation. Also available as a REST API.

AI tools

JSON Schema Example Generator

Generate a valid example JSON payload from a JSON Schema, honoring types, enums, required fields, formats, bounds and local $ref references.

AI tools

JSON to TypeScript Converter

Convert JSON to TypeScript interfaces or type aliases with nested types, union types for mixed arrays, and optional or readonly fields.

Converters

JSON to Zod Schema

Convert JSON to Zod schema definitions with optional/required inference, coerce mode, and nested schema support

Converters

JSON to Go Struct

Convert JSON to idiomatic Go struct definitions with json tags, nested structs, omitempty, and pointer options

Converters

JSON to Python Dataclass

Convert JSON to Python dataclass or TypedDict definitions with type hints, nested classes, and Optional types

Converters

JSON to Rust Serde

Convert JSON to Rust structs with Serde Serialize and Deserialize derives, rename_all options, Option<T> for nulls and pub fields.

Converters

JSON to Kotlin Data Class

Convert JSON to Kotlin data classes for kotlinx.serialization, Gson or Moshi, with nested classes and optional nullable fields.

Converters

NDJSON/JSONL Viewer

Parse and view JSONL (newline-delimited JSON) with interactive table, filtering, sorting, and export

Developer utilities

CSV ↔ JSON Converter

Convert between CSV and JSON with auto-delimiter detection and proper escaping

Converters

YAML ↔ JSON Converter

Convert YAML to JSON and JSON to YAML as you type, with 2 or 4-space indentation, key sorting and line-numbered parse errors.

Converters

XML to JSON Converter

Convert XML to JSON and JSON to XML, with a configurable attribute prefix, #text keys for element text and arrays for repeated tags.

Converters

Format Detective

API

Detect whether text is JSON, YAML, XML, CSV, TOML, INI or a Markdown table, with confidence scores, and convert it. Also available as a REST API.

Converters

Text & Code Diff Checker

API

Compare two texts or code snippets line by line in side-by-side or unified view and copy the unified diff. The API also diffs JSON and YAML.

Developer utilities

Validation Schema Generator

Infer a JSON Schema (Draft-07 or 2020-12) from a sample JSON document, with options for required fields, titles, examples and additionalProperties.

Developer utilities

More collections