JSON Size Analyzer
Analyzes a JSON payload and shows how many bytes each key takes, sorted by weight, with percentage of total and the full path per node.
Summary
How the bytes are counted
Every node is measured as the UTF-8 byte length of its minified JSON form, so indentation in the pasted text never inflates a field. Accented letters cost two bytes and emoji cost four, which is why a short label in Portuguese can weigh more than an English one of the same length.
With the key cost turned on, a node also pays for its own name, the colon and the comma that separates it from the next sibling. That is what makes the repeated-keys block useful: a name such as createdAt repeated 340 times costs around 4 KB before any value is counted, and renaming it is often a bigger win than trimming the values.
Find out which JSON field weighs most
An API response that grew from 40 KB to 300 KB rarely grew evenly: one specific field usually dragged the rest along. Paste the JSON here and you get the weight of every node in bytes, its share of the total and the full path, in the style $.data.items[0].summary. The list is sorted from heaviest to lightest, so the culprit tends to show up in the first row.
Sizes are measured on the minified form, in UTF-8 bytes, not on the text you pasted. Indentation therefore never inflates a field, and the summary still tells you how much of the payload is pure whitespace. Keep in mind that an accented letter costs two bytes and an emoji costs four, so a short label in Portuguese can outweigh an English one of the same apparent length.
The detail that usually saves the most sits in the repeated-keys block. With the key cost turned on, each node also pays for its own name, the colon and the comma separating it from the next sibling. A name such as createdAt repeated 340 times already costs around 4 KB before any value is counted, and shortening it often beats trimming the values themselves.
Frequently asked questions
Why do the node sizes not add up to the total?
What changes when I turn off the key name cost?
Can I analyze a large JSON of a few megabytes?
Related Tools
SVG Optimizer
Reduce SVG file size by removing metadata, comments, editor attributes (Inkscape, Illustrator) and unnecessary whitespace. Processed in your browser.
i18n Translation File Diff
Compares two i18n JSON files and reports missing, extra and empty keys plus placeholder mismatches between the two locales.
PWA manifest.json Generator
Build a manifest.json for a PWA (name, short_name, theme_color, background_color, display, icons) with preview.