How to use the JSON Size Analyzer
Analyze your JSON payload size breakdown:
Paste your JSON
Paste any JSON object or array — minified or pretty-printed. Size is measured from the actual content, independent of formatting whitespace.
Click Analyze
Get a table showing each key, its value type, byte size, and percentage of total payload with a visual bar.
Sort by size
Click the Size column to sort descending and instantly see the largest fields at the top. This identifies your optimization targets quickly.
Drill down or limit depth
Set a max depth to focus on top-level fields first, or expand to see the full nested breakdown.
Optimize
Use the insights to shorten key names, remove unused fields, move large blobs to CDN URLs, or restructure the data. Re-paste optimized JSON to compare the new total size.
When to use this tool
Use this when you need to understand and optimize your JSON payload size:
- →Profiling an API response to identify which fields are contributing most to payload size before an optimization sprint
- →Finding unexpectedly large embedded values (base64 images, long strings, large arrays) in a JSON response
- →Optimizing mobile app API responses where bandwidth and data transfer costs are constrained
- →Deciding which fields to remove, abbreviate, or move to a separate endpoint to reduce response size
- →Auditing third-party API responses to understand their payload composition before caching or storing
- →Comparing JSON payload sizes before and after an optimization to quantify improvements
- →Identifying fields where abbreviated key names (e.g. desc instead of description) would significantly reduce size at scale