Skip to content

Category · 1 tool · 1 guide

JSON tools

JSON is the default data format of the web. REST APIs return it, browsers store it, NoSQL databases are built on it, and most configuration that is not YAML is JSON. It looks simple: objects, arrays, strings, numbers, booleans and null. That simplicity is also why small mistakes are so common. One trailing comma or a single-quoted string and JSON.parse throws an error that points at a character position deep inside a payload you did not write.

Developers mostly work with JSON they did not produce: a minified API response, a log line, a webhook body or a config exported from another system. Before you can reason about that data you need to see its shape. That means indentation, a tree view, and an exact error location when the document is broken.

The tools here cover that everyday loop: make JSON readable, confirm it is valid, shrink it for transport, and move it into the next format or language you need. Payloads often contain tokens, emails or customer records, so everything runs locally in your browser and nothing is uploaded.

Tools in this category

Common tasks

Key concepts

Valid JSON
JSON is defined by RFC 8259. Keys must be double-quoted strings, strings use double quotes, and comments, trailing commas, NaN and undefined are not allowed. Many tools accept "JSON5" or "JSONC" extensions, but standard parsers do not.
Pretty-print and minify
Pretty-printing adds indentation and line breaks for humans. Minifying removes all optional whitespace to make payloads smaller. Both represent exactly the same data.
Number precision
JSON numbers have no size limit, but JavaScript parses them as 64-bit floats. Integers above 2^53, such as some database IDs, silently lose precision, which is why many APIs send large IDs as strings.
JSON Schema
A JSON document that describes the expected shape of other JSON: required fields, types, formats and allowed values. It is used for validation, documentation and code generation, including inside OpenAPI.
NDJSON
Newline-delimited JSON puts one complete JSON value on each line. It is common in logs and streaming exports because it can be processed line by line without loading the whole file.

Best practices

  1. Validate JSON at the boundary of your system, when it arrives from a request or file, and return a clear error instead of failing deep inside business logic.
  2. Send large integer IDs and money amounts as strings, or use integer cents, to avoid floating-point rounding in JavaScript clients.
  3. Keep key order stable and use one indentation style in committed JSON files so diffs stay small and reviews stay readable.
  4. Use ISO 8601 strings in UTC for dates, such as 2026-10-09T10:30:00Z, instead of locale-formatted text.
  5. Never paste production tokens or personal data into online tools that upload content; prefer tools that process data locally.

Guides