Skip to main content
Toollabz

Formátovač 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.

Táto stránka prekladá anglický originál. Výpočtový engine je rovnaký.

Anglická verzia

Rýchla odpoveď

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

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

Výpočty sa riadia vzorcom na tejto stránke; zaokrúhľovanie a jednotky môžu zmeniť poslednú číslicu. Výsledok berte ako vzdelávací odhad.

* Odhad. Skutočné sumy sa môžu líšiť podľa predpokladov.

Čo táto kalkulačka robí

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

Pre koho je

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

Ako výpočet funguje

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

Vzorec

Parse → reprint. No numerical formula.

Predpoklady

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

Obmedzenia

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

Ako nástroj použiť

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

Časté otázky

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.

Súvisiace nástroje

Formátovať a overiť JSON | Toollabz