Skip to main content
Toollabz

Formatter JSON

Paste JSON to pretty-print or minify it. The parser runs in your browser so the document does not need to leave the device for this task.

Această pagină traduce originalul în engleză. Motorul de calcul este același.

Versiunea în engleză

Răspuns rapid

It parses the text as JSON and reprints it with indentation, or compactly, or reports the first syntax error.

Exemplu: {"a":1} becomes a two-line pretty document with an indented key.

Calculele urmează formula de pe această pagină; rotunjirea și unitățile pot schimba ultima cifră. Tratați rezultatul ca o estimare educativă.

* Estimare. Sumele reale pot varia în funcție de ipoteze.

Ce face acest calculator

It parses the text as JSON and reprints it with indentation, or compactly, or reports the first syntax error.

Pentru cine este

Developers checking API payloads, config files or a copied object.

Cum funcționează calculul

JSON.parse on the input, then JSON.stringify with a chosen indent. Errors come from the parser, not from a server.

Formulă

Parse → reprint. No numerical formula.

Ipoteze

  • Input is text you are allowed to process locally.
  • Standard JSON, not JSON5, unless the page says otherwise.

Limitări

  • Very large documents may hit browser memory limits.
  • Does not fetch URLs for you.

Cum folosești instrumentul

  1. 1Paste the JSON.
  2. 2Choose format or minify.
  3. 3Fix the reported line if the parser fails.

Întrebări frecvente

Why did it fail on a trailing comma?
Standard JSON does not allow trailing commas. Remove them or convert the file.
Is my data sent to Toollabz?
Formatting runs in the browser. Do not paste secrets into any third-party page if your policy forbids it.

Instrumente conexe

Formatare și validare JSON | Toollabz