Aller au contenu
uencoder

Formater minified JSON so it can be read (and diffed)

Turn un one-ligne API réponse en indented JSON, avec precise erreur locations quand le entrée est non valide JSON at tout.

  1. 1
    Formateur JSON →

    Paste the minified JSON. Choose indent size in the options (2 spaces is the ecosystem default). The output is safe to paste into a diff or PR review.

  2. 2

    If formatting fails, the input is not valid JSON — the tool reports the exact line and column (common culprits: trailing commas, unquoted keys, single quotes, NaN/undefined values). Fix the source, not the formatter: JSON.stringify-level strictness is what every consumer will apply.

  3. 3
    Validateur JSON →

    Validation-only pass when you just need a yes/no with the error position, without producing formatted output.

  4. 4

    For large responses, remember everything runs locally in this tab — there is no size ceiling from an upload limit, only your browser's memory. Minified payloads of several megabytes format in well under a second.

Questions fréquentes

Does pretty-printing change the data?
No. Formatting only changes whitespace between tokens. The parsed values are identical, and re-minifying restores the semantics exactly (key order is preserved too, per JSON object semantics).
Can I sort the keys instead?
Key sorting is a different transformation (useful for stable diffs). This formatter preserves original key order by design — sorting silently changes what a diff means.

Workflows résolvant cette tâche

Convertir la casse de nommage et valider en JSON
Convertir les identifiants en convention de nommage cible, puis valider le résultat en JSON pour confirmer la structure.
PIPELINE
Comparer deux configs YAML via JSON
Convertir les configs YAML en JSON pour une comparaison diff-friendly des valeurs structurées.
PIPELINE
Coder une charge utile JSON pour transport URL
Préparer un Document JSON pour un Paramètre URL: embellir, Coder en Base64, puis encodage pourcent — le inverse exacte de le chaîne de décodage de paramètres imbriqués.
PIPELINE
HJSON en format JSON
Formater HJSON et convertir en JSON standard.
PIPELINE
Formater JS et valider JSON
Formater le code JS puis valider en JSON.
PIPELINE
Formater JSON et calculer une somme de contrôle d'intégrité
Pretty-printer un document JSON et calculer une somme CRC32 pour détecter toute modification ultérieure.
PIPELINE
Minifier et valider JSON
Formater JSON pour inspection et valider sa correction syntaxique en une passe.
PIPELINE
Générer JSON Schema et valider
Générer un JSON Schema à partir de données d'exemple puis valider par rapport à lui.
PIPELINE
Formater JSON et générer une interface TypeScript
Formater un document JSON puis inférer une définition d'interface TypeScript en une chaîne.
PIPELINE
Valider, formater, puis convertir JSON en YAML
Convertir une config JSON (possiblement minifiée) en YAML, capturant les erreurs de syntaxe au premier nœud au lieu de produire un YAML subtilement erroné.
PIPELINE
JSON5 en format JSON
Formater JSON5 et convertir en JSON standard.
PIPELINE
JSONC en format JSON
Formater JSONC (JSON avec commentaires) et convertir en JSON standard.
PIPELINE
Décoder et formater une charge utile JWT
Analyser un token JWT, extraire sa charge utile et formater le JSON pour inspection.
PIPELINE
Analyser chaîne de requête et formater JSON
Analyser une chaîne de requête en paires clé-valeur puis formater en JSON.
PIPELINE
Convertir TOML en JSON
Analyser un fichier de configuration TOML en JSON pour les outils et API attendant une entree JSON.
PIPELINE
Convertir TOML en YAML via JSON
Transformer un fichier de configuration TOML en format YAML, utilisant JSON comme representation intermediaire.
PIPELINE
Decoder un parametre URL imbrique (Base64 JSON)
Derouler un parametre URL transportant du JSON Base64 code URL en JSON formate lisible.
PIPELINE
Generer des interfaces TypeScript depuis YAML
Convertir un document YAML en definitions d'interface TypeScript, utilisant JSON comme format intermediaire.
PIPELINE
Valider et formater YAML
Convertir YAML en JSON pour valider sa structure, puis confirmer que le JSON est bien forme.
PIPELINE

Outils associés