EXACT JSON / FORMAT

Format JSON. Keep every digit.

Preserves 9007199254740993 and 12.500. Formatting changes whitespace, not number tokens.

Other JSON tasks

Exact number tokens · strict JSON · duplicate-key errors

⌘ / Ctrl ↵ to run
0 bytes
Ready for your data

Copy and Download are directly below this result.

Examples, precision limits & local saves
{ }Exact JSON
THE LOCAL DATA WORKBENCH

Lossless JSON formatter

Format, validate syntax and inspect a JSON tree without rounding numeric tokens.

↳ Your data stays with you.Browser-local processing.
Tool inputs are processed locally. No remote schema references. Website usage statistics: see Data & privacy.

A fresh visit starts with synthetic JSON. Saved or carried input takes priority. Load synthetic example replaces the current input; Undo input restores it.

01 / PRECISION

Big IDs stay big IDs.

Number lexemes survive formatting, selection and conversion. Diff uses exact decimals.

02 / CONTINUITY

Keep your next step close.

Use a result as input, switch tools, or save a local session for later.

03 / HONEST LIMITS

Unsupported means unsupported.

No silent rounding, skipped JSONL lines or empty results for unsupported selectors.

Keep the digits you started with

Paste JSON or open a local UTF-8 file. Formatting changes whitespace, while number tokens such as 12.500 and 9007199254740993 remain unchanged. The tree shows paths and types without converting numbers to JavaScript doubles. JSON comments and trailing commas are syntax errors.

JSON formatting example

This synthetic example uses Pretty mode with two-space indentation.

Input

{"id":9007199254740993,
"amount":12.500}

Expected output

{
  "id": 9007199254740993,
  "amount": 12.500
}

The large ID stays a JSON number, and 12.500 keeps its original numeric spelling. Formatting is not byte-preserving: whitespace changes, string escapes may normalize, and integer-like object keys may reorder.

Formatting checks JSON syntax and rejects duplicate keys. It does not validate required fields or value types against a JSON Schema. Check a JSON Schema using the Schema tool's separate numeric limits.

Try the large-integer fixture or a duplicate-key error.

Select values with JSONPath →