DataToolsLab
JSON Tools

JSON Size Analyzer

Visualize byte-size contributions per key path in a JSON document.

Loading tool…

What is Size Analyzer?

The JSON Size Analyzer breaks down a JSON document by key path, showing the byte-size contribution of each branch. Useful for finding bloat in large API responses or config files.

How it works

We recursively walk the parsed JSON and compute the serialized byte size of each subtree using Blob. Each entry shows its path, bytes, percentage of total, and a proportional bar for visual scanning.

  1. Paste JSON. Drop or paste any JSON document.
  2. Review the breakdown. Paths are listed with byte size, percentage, and a visual bar. Larger bars = bigger contributors.

Examples

Find bloat

A 1MB API response might show that /data/items[].description accounts for 60% of the total.

Common mistakes

Serialization overhead

The analyzer JSON-stringifies each subtree, which adds quote and brace overhead to leaf values.

Alternatives

JSON Formatter

Format and inspect JSON manually.

Frequently asked questions

Does it count whitespace?

Each path is measured via JSON.stringify, so whitespace is minimal. The numbers reflect serialized payload size.

Online