# JSON-Formatierer

> Formatiere JSON mit lesbarer Einrückung.

[Open tool](https://www.toolcabana.com/de/json-formatter) · [Entwicklung und Daten](https://www.toolcabana.com/de/category/developer-and-data)

Tool ID: json-formatter. Requested language: de. Description language: de. Complete guide translation: yes.

## Overview (en)

JSON formatter takes strict JSON and returns the same data with readable line breaks and indentation. You can set 1 to 8 indent spaces or switch to tabs, sort object keys alphabetically, and end the output with a newline. Integers beyond the exact safe range are rejected instead of being silently rounded.

## Supported tasks (de)

Akzeptiert striktes JSON. Nachgestellte Kommas, Kommentare, einfache Anführungszeichen und nicht endliche Zahlen sind ungültig. Die Formatierung behält geparste Werte bei; doppelte Schlüssel folgen der JSON.parse-Semantik, sodass nur ihr letzter Wert erhalten bleibt.

## Steps (de)

1. Gib deine Quelle ein, füge sie ein oder lade ein Beispiel.
2. Ändere die Grundeinstellungen oder öffne den Erweiterten Modus, um das Ergebnis fein abzustimmen.
3. Prüfe dein Ergebnis und kopiere es oder lade es herunter. Pausiere Live-Ergebnisse, um manuell auszuführen. Quellen oder einzelne Einstellungen über 20.000 Zeichen erfordern eine explizite Ausführung.

## Settings

- Einrückung (Leerzeichen) (de; key: indent; type: number); minimum: 1; maximum: 8
- Objektschlüssel alphabetisch sortieren (de; key: sortKeys; type: checkbox)
- Mit einem Zeilenumbruch enden (de; key: finalNewline; type: checkbox)
- Einrückungsstil (de; key: indentStyle; type: select): Leerzeichen [de], Tabulatoren [de]

## Limitations (de)

Textvorgänge akzeptieren im Allgemeinen bis zu 2.000.000 Zeichen. Einzelne Parser, Generatoren und Formeln haben zusätzliche Grenzen, die in ihren Bedienelementen angezeigt werden.

## Example input

```text
{"name":"ToolCabana","count":2}
```

## Privacy and connections (de)

Dieser Vorgang verarbeitet seine Quelle in deinem Browser. Kopieren und Herunterladen sind ausdrückliche Aktionen; die Quelleingabe wird nicht in einem Konto oder Verlauf gespeichert.

## Questions (de)

### Can I format JSON with tabs instead of spaces?

Yes. Open Advanced mode and set Indentation style to Tabs. With Spaces selected, the Indent spaces setting accepts any whole number from 1 to 8, and the default is 2.

### Does the JSON formatter accept trailing commas or comments?

No. It accepts strict JSON only, so trailing commas, comments, single quotes and nonfinite numbers produce an error that names the line and column where parsing failed.

### What happens to duplicate keys when I format JSON?

Duplicate keys follow standard JSON.parse behavior, so only the last value for a repeated key remains in the formatted output. Check the source if earlier values matter to you.

### Wo wird meine Eingabe verarbeitet?

Dieser Vorgang verarbeitet seine Quelle in deinem Browser. Kopieren und Herunterladen sind ausdrückliche Aktionen; die Quelleingabe wird nicht in einem Konto oder Verlauf gespeichert.

### Welche Eingabelimits gelten?

Textvorgänge akzeptieren im Allgemeinen bis zu 2.000.000 Zeichen. Einzelne Parser, Generatoren und Formeln haben zusätzliche Grenzen, die in ihren Bedienelementen angezeigt werden.

## Related tools

- [JSON validator](https://www.toolcabana.com/de/json-validator)
- [JSON minifier](https://www.toolcabana.com/de/json-minifier)
- [JSON diff](https://www.toolcabana.com/de/json-diff)
- [JSON to CSV](https://www.toolcabana.com/de/json-to-csv)
