JSON サイズ分析
トリーマップでサイズ内訳を可視化
JSON Input
Size Breakdown
Find out exactly which keys make your payload heavy
Slow APIs and large databases often boil down to one or two oversized fields buried in an otherwise lean payload. A size analyzer breaks the document down by byte contribution and visualizes it as a treemap, so you can see at a glance which keys deserve attention before deciding what to trim, paginate, or move out of JSON entirely.
Use the analyzer when you need to
Diagnose a slow API response
Identify the field consuming most of the payload before you optimize, paginate, or compress.
Audit a stored document
See which keys take up the most room in a NoSQL or document-database record.
Plan a payload-shrinking effort
Prioritize the highest-impact fields to remove or compress instead of micro-optimizing small ones.
How to analyze JSON size
- 1
Paste the JSON document into the editor.
- 2
Click Analyze to break the document down by key with byte counts.
- 3
Hover or click the treemap to drill into the biggest contributors.
Keep going
Minify the payload
Strip whitespace as a first cheap optimization before refactoring fields.
Visualize as a graph
Switch to graph view when relationships matter more than size.
Inspect specific fields
Drill into a heavy node in tree view to decide how to slim it down.
Format before analyzing
Pretty-print the source so the labels in the analyzer match what you expect.
Common size-analysis workflows
Identify the biggest fields and either trim, paginate, or move them out of the response body.
See which embedded subdocuments are pushing rows over storage limits.
Compare the breakdown before and after a refactor to confirm the savings landed where expected.
関連ツール
よくある質問
JSON ドキュメントをサイズ(バイト数)で分解し、どのキーや値が容量を最も消費しているかを可視化します。インタラクティブなツリーマップで、肥大化しているフィールドや冗長なデータ、最適化ポイントを素早く見つけられます。
空白を除いた minified JSON 表現のバイト数で計測します。これはネットワーク送信時の実際のペイロードサイズに近く、API パフォーマンスの観点で重要です。
まず最大のフィールドを特定し、未使用フィールドの削除、API レスポンスのキー名短縮、大きなバイナリデータ(画像など)を JSON に入れず別エンドポイントへ分離、配列のページネーション、サーバー側での GZIP 圧縮などを検討してください。
Web API では 100KB 未満を目標にすると良いことが多いです。モバイル中心の API なら 50KB 未満が目安です。1MB を超えるレスポンスはページネーションや設計見直しを推奨します。GZIP 圧縮は通常 JSON サイズを 70〜90% 程度削減できます。