Your files stay on your device

# JSON tools

Format, inspect, and convert JSON, validate it against a schema, and turn it into code without uploading it. Everything is computed in your browser.

12 tools

- [JSON formatter

Pretty-print or minify, sort keys, and validate.
](/json/formatter)
- [JSON validator

Check strict JSON or JSONC, then explore it as a tree.
](/json/validator)
- [JSON sort

Sort object keys, top level or every level.
](/json/sort)
- [JSON string escape

Escape raw text into a JSON string body, and back.
](/json/escape)
- [JSON query

Pull values out with JSON Pointer or a JSONPath subset.
](/json/query)
- [JSON diff

Semantic and text comparison of two documents, with an RFC 6902 patch export.
](/json/diff)
- [JSON converter

Convert JSON to and from JSON5, HJSON, plist (XML or binary), YAML, TOML, CSV, XML, NDJSON, query strings, .env, MessagePack, CBOR, and BSON.
](/json/convert)
- [JSON to code

Turn JSON into typed models in 27 languages, including TypeScript, Go, Rust, Python, Swift, and Kotlin.
](/json/codegen)
- [JSON schema validator

Validate JSON against a JSON Schema (2020-12, 2019-09, or draft-07) with every rule stated up front.
](/json/schema)
- [JSONL / NDJSON

Validate line by line, infer columns, convert JSONL to CSV/TSV/Markdown/JSON.
](/json/jsonl)
- [Flatten JSON

Nested objects to dot keys and back. Collisions are caught and ambiguity is refused.
](/json/flatten)
- [JSON schema generator

Instance to schema: required threshold, nullability, tuples, re-validated.
](/json/schema-generator)

Your files are processed on your device. The few tools that talk to the internet say so before they do.

---

Canonical HTML: https://nutter.tools/json/
Markdown version: https://nutter.tools/json/index.md
Plain-text version: https://nutter.tools/json/index.txt
Agent index: https://nutter.tools/llms.txt

