ブラウザ内でJSONを圧縮・検証し、節約できるバイト数を表示します。
JSON圧縮の使い方
JSONを貼り付けてください。
自動的に検証・圧縮されます。
圧縮された出力をコピーし、バイト節約量を確認してください。
A JSON minifier validates your JSON and strips out every unnecessary character, the spaces, indentation and line breaks that make JSON readable, then reports how many bytes and what percentage you saved.
Minified JSON is identical in meaning to the formatted version; only the cosmetic whitespace is gone. That makes it the right form for production: API responses, config bundled into an app, or any payload where transfer size and parse time matter.
It runs in your browser using the native JSON engine, so the output is exactly what your own code would produce. Because it parses first, a successful minify also confirms your JSON is valid; invalid input returns a precise error instead.
One subtle effect is number normalization, which is part of the JSON standard rather than this tool: 1.50 becomes 1.5 and 1e3 may be rewritten, because those represent the same value. Keys, strings, booleans and structure are never changed.
Minification and gzip are complementary, not alternatives. Servers usually gzip responses, which compresses repeated text heavily; minifying first removes whitespace the compressor would otherwise have to handle, and the two together give the smallest transfer.
When you need to read or edit JSON instead of shrink it, the JSON Formatter does the reverse, pretty-printing it with clean indentation. Nothing you paste here is uploaded.
よくある質問
すべての不要なスペースと改行を削除し、同じデータを持つ最小サイズの有効なJSONを生成します。これにより転送が速くなります。
いいえ。フォーマットのみが削除されます。キー、値、型は保持され、数値はJSON標準によって正規化されます(例:1.50は1.5になります)。
パーサーのエラーメッセージが表示されるため修正できます。JSONが有効になるまで圧縮は行われません。
このツールを埋め込む
このツールをご自身のウェブサイトに追加できます。下のコードをコピーしてください。内容は自動的に最新の状態に保たれます。
<iframe src="https://monu.tools/embed/ja/json-minifier" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>関連ツール
JSONを整形・検証・圧縮します。ネストされた構造を表示し、構文エラーを強調表示します。すべてブラウザ内で処理されます。
JSONをCSVに、CSVをJSONに双方向で変換します。区切り文字の選択、引用符付きフィールドの処理ができます。すべてブラウザ内で処理されます。
YAMLをJSONに、JSONをYAMLに双方向で変換します。変換しながら検証し、エラーを明確に表示します。すべてブラウザ内で処理されます。
JSONサンプルからネスト型・配列・省略可能フィールドを含むTypeScriptインターフェースを生成します。ブラウザ内で動作します。