Skip to main content
Toollabz

Formateur 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.

Cette page traduit la version anglaise. Le moteur de calcul est identique.

Version anglaise

Réponse rapide

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

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

Les calculs suivent la formule indiquée sur cette page ; l’arrondi et les unités peuvent modifier le dernier chiffre. Traitez le résultat comme une estimation éducative.

* Estimation. Les montants réels peuvent varier selon les hypothèses saisies.

Ce que fait ce calculateur

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

À qui s’adresse-t-il

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

Comment le calcul fonctionne

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

Formule

Parse → reprint. No numerical formula.

Hypothèses

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

Limites

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

Comment utiliser cet outil

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

FAQ

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.

Outils liés

Formateur et validateur JSON | Toollabz