iTool

JSON- & JSONL-Parser / Formatter

Kostenloser Online-Parser für JSON & JSONL. Validieren, formatieren, minifizieren mit Syntax-Highlighting. Erkennt .jsonl automatisch. 100 % clientseitig.

Alles bleibt auf Ihrem Gerät. Nichts wird an einen Server gesendet, ganz unbesorgt.
JSON links einfügen — das Validierungsergebnis erscheint hier
0 Zeichen
Formatierte Ausgabe
JSON links einfügen — formatiertes Ergebnis erscheint hier

Verwandte Werkzeuge

Weitere iTool-Funktionen!

Häufig gestellte Fragen

Was ist JSON-Validierung?

Dabei wird geprüft, ob der JSON-Code syntaktisch korrekt ist. Bei Fehlern wie fehlenden Anführungszeichen, falschen Kommas oder nicht übereinstimmenden Klammern werden Fehlerposition und -ursache angezeigt.

Kann ich die Einrückungstiefe ändern?

Ja, Sie können die gewünschte Einrückungstiefe (z. B. 2 oder 4 Leerzeichen) wählen, um das JSON übersichtlich zu formatieren.

Was ist der Unterschied zwischen JSON minify und pretty print?

Minify entfernt alle Leerzeichen und Zeilenumbrüche und macht das JSON zu einer einzigen Zeile – nützlich, wenn die Dateigröße minimiert werden soll (z. B. bei API-Anfragen). Pretty print fügt Einrückungen und Zeilenumbrüche hinzu, damit Menschen das JSON leicht lesen können.

Wird JSON mit koreanischen oder anderen Unicode-Zeichen unterstützt?

Ja, da UTF-8-Encoding unterstützt wird, kann JSON mit koreanischen oder anderen Unicode-Zeichen problemlos geparst und formatiert werden. Unicode-Escapes (\uXXXX) werden ebenfalls korrekt verarbeitet.

Kann das Tool auch große JSON-Dateien verarbeiten?

Die Verarbeitung erfolgt im Arbeitsspeicher des Browsers. Bei sehr großen Dateien (mehrere Dutzend MB) kann die Geschwindigkeit je nach Browser-Performance sinken. Alle Daten werden ausschließlich im Browser verarbeitet – ohne Serverübertragung.

Können auch JSONL-Dateien (JSON Lines) geparst werden?

Ja, das JSONL-Format (.jsonl), bei dem jede Zeile ein JSON-Objekt enthält, wird automatisch erkannt. Dieses Format wird häufig für KI-Trainingsdatensätze und Logdateien verwendet. Die Objekte werden mit Zeilennummern und der Gesamtanzahl angezeigt. Ziehen Sie einfach eine .jsonl-Datei in das Eingabefeld.

Online JSON Parser & Formatter

JSON (JavaScript Object Notation) is the most common data exchange format. A JSON parser validates your JSON, pretty-prints it with indentation, and highlights syntax so you can spot errors instantly.

Features

  • Real-time validation with 150ms debounce as you type
  • Collapsible tree view — explore nested objects/arrays with +/− toggles
  • Format / Minify — 2-space, 4-space, or tab indentation, or strip whitespace
  • Error location — shows "line N, col M" for parse failures
  • Lenient mode auto-recovery — fixes unescaped control characters, wrap-split tokens, trailing commas, and comments
  • Recovery highlight — auto-recovered values get a 🟥 red outline so you can spot what changed
  • Syntax highlighting — keys, strings, numbers, booleans, null colored distinctly
  • Copy / Download — copy formatted output or save as .json file
  • JSONL auto-detection.jsonl files shown as a numbered object list

JSONL (JSON Lines) support

JSONL (JSON Lines, extension .jsonl or .ndjson) stores one JSON object per line. It is widely used for AI training datasets (ChatGPT, Claude fine-tuning) and server log files. When the input is JSONL, this parser auto-detects it, renders a numbered object list, and shows the total object count. Drop a .jsonl file onto the input box to parse it instantly; copy and download output stays in valid JSONL format (one object per line).

Lenient mode — auto-recovery for broken JSON

JSON copied from chat apps, email clients, or terminals often contains accidental line breaks that break JSON.parse. This tool auto-recovers 4 common cases:

  1. Control chars inside strings (\n, \t) → replaced with spaces
  2. Line breaks inside tokens (e.g. 847\n521, fal\nse) → rejoined
  3. Trailing commas → removed
  4. Comments (//, /* */) → stripped (URLs preserved)

When recovery applies, a yellow warning banner appears and recovered values are outlined in red.

Privacy: 100% client-side

Your JSON is never sent to any server. All parsing happens in your browser. Safe for JSON containing API keys, passwords, or sensitive customer data.

Common parse errors

  • Unexpected token: missing quotes around keys, or missing comma/colon
  • Unexpected end of input: unclosed {} or []
  • Trailing comma after the last item — not allowed in strict JSON
  • Single quotes — JSON requires double quotes for strings

JSON syntax cheatsheet

  • Keys must be strings wrapped in double quotes
  • Values: string, number, boolean (true/false), null, object {}, array []
  • No comments (// or /* */) in strict JSON

Helfen Sie uns, dieses Werkzeug zu verbessern

Teilen Sie mit, was Ihnen gefällt, was verbessert werden kann oder welche Funktionen Sie sich wünschen

Esc

Downloads im In-App-Browser blockiert

In App-Ansichten ist das Speichern von Dateien eingeschränkt. Zum Herunterladen in Safari öffnen.

1 Tippe auf ⋯ / Teilen (unten oder oben am Bildschirm)
2 Wähle „In Safari öffnen“ oder „Im Browser öffnen“

Oder Link kopieren und in Safari einfügen