Zum Inhalt springen
uencoder

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

Turn ein one-Zeile API Antwort in indented JSON, mit precise Fehler locations wenn der Eingabe ist nicht gültig JSON at alle.

  1. 1
    JSON-Formatierer →

    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
    JSON-Validator →

    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.

Häufige Fragen

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, die diese Aufgabe lösen

Namenskonvention umwandeln und als JSON validieren
Bezeichner in Ziel-Namenskonvention umwandeln, dann Ausgabe als JSON validieren zur Strukturbestätigung.
PIPELINE
Zwei YAML-Konfigurationen über JSON vergleichen
YAML-Konfigurationen in JSON umwandeln für diff-freundlichen Vergleich strukturierter Werte.
PIPELINE
JSON-Nutzlast für URL-Transport kodieren
Ein JSON-Dokument für URL-Parameter vorbereiten: pretty-print, Base64-kodieren, dann percent-kodieren — die exakte Umkehrung der verschachtelten Parameter-Dekodierungskette.
PIPELINE
HJSON zu JSON-Format
HJSON formatieren und in Standard-JSON umwandeln.
PIPELINE
JS formatieren und JSON validieren
JS-Code formatieren dann als JSON validieren.
PIPELINE
JSON formatieren und Integritäts-Prüfsumme berechnen
Ein JSON-Dokument pretty-printen und eine CRC32-Prüfsumme berechnen zur Erkennung nachfolgender Änderungen.
PIPELINE
JSON minifizieren und validieren
JSON für Inspektion formatieren und syntaktische Korrektheit in einem Durchgang validieren.
PIPELINE
JSON Schema generieren und validieren
Ein JSON Schema aus Beispieldaten generieren dann dagegen validieren.
PIPELINE
JSON formatieren und TypeScript-Interface generieren
Ein JSON-Dokument formatieren dann eine TypeScript-Interface-Definition inferieren in einer Kette.
PIPELINE
Validieren, formatieren, dann JSON zu YAML umwandeln
Eine (möglicherweise minifizierte) JSON-Konfiguration in YAML umwandeln, Syntaxfehler am ersten Knoten abfangen statt subtil falsches YAML zu erzeugen.
PIPELINE
JSON5 zu JSON-Format
JSON5 formatieren und in Standard-JSON umwandeln.
PIPELINE
JSONC zu JSON-Format
JSONC (JSON mit Kommentaren) formatieren und in Standard-JSON umwandeln.
PIPELINE
JWT-Payload dekodieren und formatieren
Ein JWT-Token parsen, Payload extrahieren und JSON formatieren für Inspektion.
PIPELINE
Query-String parsen und JSON formatieren
Query-String in Schlüssel-Wert-Paare parsen dann als JSON formatieren.
PIPELINE
TOML in JSON umwandeln
Eine TOML-Konfigurationsdatei in JSON parsen fuer Tools und APIs, die JSON-Eingabe erwarten.
PIPELINE
TOML ueber JSON in YAML umwandeln
Eine TOML-Konfigurationsdatei in YAML-Format umwandeln, mit JSON als Zwischendarstellung.
PIPELINE
Verschachtelten URL-Parameter dekodieren (Base64 JSON)
Einen URL-Parameter, der URL-kodiertes Base64-JSON transportiert, in lesbares formatiertes JSON entfalten.
PIPELINE
TypeScript-Interfaces aus YAML generieren
Ein YAML-Dokument in TypeScript-Interface-Definitionen umwandeln, mit JSON als Zwischenformat.
PIPELINE
YAML validieren und formatieren
YAML zu JSON umwandeln zur Strukturvalidierung, dann bestaetigen, dass das JSON well-formed ist.
PIPELINE

Verwandte Tools