Toolivaro

JSON-Minifier kostenlos

Komprimiere JSON auf seine kleinste gültige Form — entferne den gesamten Leerraum, zähle die gesparten Bytes und kopiere oder lade herunter.

Der JSON-Minifier reduziert ein JSON-Dokument auf seine kleinste gültige Darstellung, indem er jedes Byte unbedeutenden Leerraums entfernt, während er die Daten exakt erhält. Füge formatiertes oder hübsch gedrucktes JSON ein, und das Tool liefert die kompakte Form mit Eingabe-, Ausgabegröße und Ersparnis in Bytes und Prozent — die Zahlen, die zählen, wenn du eine Konfigurationsdatei, einen API-Payload oder einen gespeicherten Blob verschlankst. Das Ergebnis entsteht durch Parsen und erneutes Stringifizieren, daher ist die minimierte Ausgabe garantiert gültig und semantisch identisch mit der Eingabe: dieselben Daten, dieselbe Key-Reihenfolge, dieselben Zahlen. Kopier- und Download-Aktionen machen es leicht, das Ergebnis in Code oder eine Datei zu übernehmen. Alles läuft lokal in deinem Browser: eingefügtes JSON verlässt dein Gerät nie, wird nie protokolliert und nie übertragen — unverzichtbar für Tokens und Konfiguration, die nicht durchsickern dürfen. Nutze dieses Tool, bevor du Konfiguration committest, um eingebettete Payloads zu verkleinern oder wenn eine API- oder Speicherquote Bytes zählt.

Wird lokal in deinem Browser verarbeitet

Wird lokal in Ihrem Browser verarbeitet — eingefügtes JSON wird nie hochgeladen, protokolliert oder gespeichert.

So verwenden Sie diesen Rechner

What minification does — and what it does not touch

Minification removes every byte of whitespace between JSON tokens: the indentation, the line breaks, the padding after colons and commas that a formatter added. Whitespace outside string values is insignificant in JSON, so removing it changes nothing about the data — the same values, the same keys, the same order — while making the document as small as the format allows. The tool parses and re-serializes the document rather than editing text, so the output is guaranteed to be valid JSON and semantically identical to the input: the minifier cannot corrupt a document the way a text-based find-and-replace could.

That guarantee is the reason to prefer parse-and-stringify over a clever regex: number representation is preserved, key order is preserved, and the result is always a document the platform can parse again. The savings panel reports input bytes, output bytes, and the percentage saved, so the decision to ship the minified form is made on real numbers.

Where the bytes actually matter

Minification pays off wherever JSON crosses a boundary with a cost: an embedded config in a shipped product (the saving multiplies across every device and every fetch), a payload measured against an API quota, a stored blob billed by size, or a fixture committed to a repository where every byte stays in history. The worked example is typical: a 412-byte pretty-printed config minifies to 301 bytes — 27% smaller, with the same data.

The honest counter-case is also worth knowing: if the input is already compact, re-serialization can add a few bytes (re-escaping a character, for instance), and the tool reports a negative saving rather than hiding it. Minification is a formatting choice with measurable results, and the panel shows the true number in both directions.

The format that travels well

A minified document is still valid JSON, so it can be formatted back to readable indentation at any time — formatting and minifying are exact inverses for valid documents, which is why the JSON formatter and minifier are linked pages. The compact form is also the better base for a second, independent compression step: transport compression (gzip, brotli) works on the bytes after minification, and starting from the smallest valid form means the transport layer has less redundancy to remove.

The two caveats are worth keeping: minification removes whitespace only — it does not rename keys, strip comments (JSON has none), or compress values — and very large documents take a moment to process, so the tool is designed for typical configs and payloads rather than database dumps.

The local promise

Config files and payloads often contain tokens, internal endpoints, and other text that must not leak, and minifying is a job no service needs to see. Everything runs in your browser: the document is parsed and serialized locally, nothing is uploaded, logged, or stored, and copy and download actions deliver the result wherever it is needed.

Wie wird das Ergebnis berechnet?

Verschlanken einer hübsch gedruckten Konfigurationsdatei

Eine hübsch gedruckte Konfiguration wiegt 412 Bytes in 14 Zeilen; ihre minimierte Form hat 301 Bytes — 27 % kleiner. Bei einer Konfiguration, die auf Tausende Geräte ausgeliefert wird, multipliziert sich diese Ersparnis über jede Installation und jeden Abruf. Das minimierte Ergebnis bleibt gültiges JSON und lässt sich jederzeit mit dem JSON-Formatierer wieder formatieren.

Beispieleingabe und -ausgabe
Eingabe Wert
json { "retries": 3, "timeoutMs": 5000, "features": { "cache": true } }
Ergebnis 412 B → 301 B (−27 %) · gültiges JSON · identische Daten

Wie lautet die Formel und ihre Annahmen?

Minifizierungsmethode

minify(json) = JSON.stringify(parse(json))

Formelbegriffe
Symbol Bedeutung
parse standardmäßiger JSON-Parser
stringify Serialisierung ohne Leerraum

Leerraum außerhalb von Strings ist in JSON bedeutungslos — ihn zu entfernen verändert die Daten daher nie.

Größenersparnis

savings % = (input bytes − output bytes) / input bytes × 100

Formelbegriffe
Symbol Bedeutung
input bytes UTF-8-Größe des Eingabedokuments
output bytes UTF-8-Größe des minimierten Dokuments

Welche Fehler sind am häufigsten?

  • JSON zu minifizieren, das von vornherein ungültig ist — das Tool validiert vor dem Komprimieren und meldet das genaue Problem.
  • Anzunehmen, Minifizieren schrumpfe jedes Dokument — bereits kompakte Eingaben können um ein paar Bytes wachsen.
  • Einen Online-Minifier zu nutzen, der das Dokument hochlädt — dieses Tool behält alles auf deinem Gerät.

Welche Annahmen und Grenzen gelten?

  • Minifizieren entfernt ausschließlich Leerraum; Keys, Werte und Struktur bleiben unverändert.
  • Sehr große Dokumente können einen Moment dauern; das Tool ist für typische Konfigurationen und Payloads gedacht.
  • Die Ausgabe nutzt kompakte Serialisierung; eine gzip-artige Kompression des Ergebnisses ist ein separater Schritt.

Woher stammen die Zahlen?

Zuletzt geprüft 4. August 2026 · Version 1.0.0 · Toolivaro garantiert keine externen Inhalte.

Häufig gestellte Fragen

Verändert Minifizieren meine Daten?

Nein. Der Minifier parst und serialisiert das Dokument neu, wodurch Werte, Key-Reihenfolge und Zahlendarstellung exakt erhalten bleiben. Leerraum zwischen Tokens ist in JSON bedeutungslos, daher ist das Entfernen verlustfrei.

Warum ist meine minimierte Ausgabe manchmal größer?

Wenn die Eingabe bereits kompakt ist, kann die erneute Serialisierung ein paar Bytes hinzufügen (zum Beispiel durch erneutes Escapen von Zeichen). Der Ersparnis-Prozentsatz kann bei solchen Eingaben negativ sein — das Tool meldet die echten Zahlen, statt sie zu verstecken.

Kann minimiertes JSON wieder formatiert werden?

Ja — die minimierte Form ist gültiges JSON, der JSON-Formatierer stellt also jederzeit die lesbare Einrückung wieder her. Formatieren und Minifizieren sind für gültige Dokumente exakte Umkehrungen.

Does the minifier remove comments?

JSON has no comments — a document containing them is not valid JSON and is rejected with the parser’s error. Files like tsconfig or package.json use JSONC or JSON5 variants that allow comments; those are outside the JSON standard this tool follows.

Why is the savings percentage negative sometimes?

When the input is already compact, re-serialization can add a few bytes — for example re-escaping a character or normalizing a number’s formatting. The tool reports the true change rather than a floor of zero.

Teil von Text- und JSON-Werkzeuge für Entwickler

Fehler gefunden oder eine Korrektur? Melde ihn — jede Korrektur wird geprüft.

War dieses Werkzeug hilfreich?

Überprüft vom Toolivaro-Redaktionsteam gemäß unserer Methodik Methodik · Redaktionsrichtlinie