ToolSprinkle.

JSON formatter

Format JSON without rounding large numbers. Edit values, copy paths, compare documents and inspect a searchable tree locally in your browser.

From input to insight.
PROCESSED ON YOUR DEVICE

Ready when you are.

Show complete plain-text result
◎ No uploads. Your input stays here.↗ Free to use. No account needed.⌘ / Ctrl + Enter to run

A worked example

Choose Try an example to run these safe test values with the default settings. Compare the complete result with the expected output below.

Input / settings

{"id":9007199254740993,"amount":1.2300,"name":"Åsa"}

Expected result

{
  "id": 9007199254740993,
  "amount": 1.2300,
  "name": "Åsa"
}
A LITTLE GUIDANCE

How to use JSON formatter

Paste JSON or open a local JSON file, choose 2 spaces, 4 spaces or Minify, then select Format JSON. Sort object keys if needed. Explore or edit values, copy JSON Pointer paths, compare a second document or search the numbered preview; use Copy or Download for the complete result.

Good to know

Numeric precision and notation are preserved; this is not a byte-for-byte copy and not a full IDE. Duplicate keys, comments and trailing commas are rejected. Pasted input is limited to 2 million characters; local files to 2 MB. The tree is bounded and only shown for results up to 100,000 characters; search covers the numbered preview, not the entire large document.

A few quick answers.

Will formatting change large IDs or precise decimals?

Numeric tokens are preserved without converting them to JavaScript floating-point numbers. Duplicate keys are rejected rather than silently overwritten. Formatting changes whitespace; sorting object keys is optional.

Is my input sent to a server?

No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.

Can I use it for free?

Yes. No account, subscription or usage credits are required.

How do I keep my result?

Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.

Data preservation guide

Keep large IDs and precise decimal tokens

JavaScript numbers cannot represent every integer above 9007199254740991. This formatter parses numeric tokens without first converting them to floating-point numbers. Try the example: 9007199254740993 stays exact and 1.2300 retains its trailing zeros. Minify removes formatting whitespace; it does not round these tokens.

Fix ambiguous JSON before formatting

A repeated key such as {"id":1,"id":2} is rejected instead of silently choosing one value. Use double quotes around keys and strings, remove trailing commas and comments, and check the reported error location. Validation checks JSON syntax, not your application schema.

Edit, compare and copy paths without losing numeric precision

After formatting a document up to 100,000 characters, open Edit values, copy paths or compare JSON. Expand objects and arrays, copy JSON Pointer paths or values, and edit any displayed value as valid JSON. Apply replaces the input and formats it again; Undo replacement restores the previous input. Comparison keeps exact numeric tokens, compares arrays by index and reports up to 500 changes. The editable tree is limited to 300 displayed nodes; large documents remain available in the complete text result. Differences appear as Original and Comparison values, with added/removed/changed labels. Use Previous/Next difference to move through them and Download differences for a JSON report.

Continue the workflow: CSV to JSON → inspect and format JSON → export CSV. Each step runs locally; review your options before converting.

Keep your flow going.

More developer tools ↗

What would you like to do?

↑ ↓ Navigate · Enter Open · Esc Close. Switching tools clears unsaved input.