JSON Size Calculator – Check JSON File Size

See how big your JSON is in bytes and KB, how much smaller it gets when minified or gzipped, and which fields take the most space.

JSON Input

Ln 1, Col 1Empty

Size Report

Your result will appear here.
No result yet

What Is a JSON Size Calculator?

A JSON size calculator measures how many bytes your JSON takes. This matters for API limits, database fields, browser storage, message queues and page speed. It also shows how much you save by minifying and compressing, and which fields make the file big.

How to Check the Size of JSON

  1. Paste your JSON, or drop a .json file on the box.
  2. Click Calculate Size, or press Ctrl + Enter.
  3. Read the size report: original, minified, gzipped and the largest fields.

Useful Size Limits

  • Many APIs and serverless functions limit request bodies to a few MB.
  • Browser localStorage usually allows about 5 MB per site.
  • Message queues and some databases limit single messages or documents (for example 256 KB or 16 MB).

Use the JSON Minifier to make your JSON smaller.

Why Characters and Bytes Differ

Sizes are measured in bytes of UTF-8 text, the same way files and network requests are counted. English letters and digits take 1 byte each, but many other characters take more: é takes 2 bytes, most Chinese, Arabic and Urdu letters take 2–3 bytes, and an emoji like 😀 takes 4 bytes. That is why a short message can be bigger than it looks.

Ways to Make JSON Smaller

  • Minify it: removing spaces and line breaks often saves 20–40% on formatted JSON.
  • Compress it: servers can send JSON with gzip or Brotli, which usually shrinks it by 70–90% because JSON repeats the same keys.
  • Remove unused fields from API responses, or let clients choose the fields they need.
  • Shorten repeated data: send IDs instead of full nested objects when the client already has them.
  • Paginate long lists instead of sending everything at once.

To find which part of your data is the biggest, open it in the JSON Viewer: the item counts on each branch show where the bulk is.

Frequently Asked Questions

Why is the gzip size so much smaller?

JSON repeats the same keys and characters a lot, so it compresses very well. Most web servers send JSON gzipped, so the gzip size is close to what really goes over the network.

Does minifying change my data?

No. Minifying only removes spaces and line breaks outside of strings. The data stays exactly the same.

How is the size counted?

Sizes are counted in bytes of UTF-8 text, the same way files and HTTP requests are measured. 1 KB is 1024 bytes.

Is my JSON uploaded?

No. Everything is measured in your browser.

Related Tools