Skip to content
JSON Size Analyzer
JSON Input
2 chars Depth 1
Analysis
Formatted size
2 B
Minified size
2 B
Max depth
1
Total keys
0
Objects
1
Arrays
0
Strings
0
Numbers
0
Booleans
0
Nulls
0
Largest paths
(root)2 B

JSON Size Analyzer

Analyze JSON size, depth and the largest objects and arrays — free, private and running entirely in your browser

JSON Size Analyzer measures a parsed JSON value. It opens on {}. Analysis waits about 200 milliseconds. Panels drag. Copy input copies the editor. Clear empties it. No download.

Last updated: 11 October 2026

Guide, examples, and FAQ

About JSON Size Analyzer

What it does

JSON.parse reads the text. Formatted size is UTF-8 bytes of JSON.stringify with two spaces. Minified size is UTF-8 bytes of JSON.stringify with no extra spaces. The last duplicate key wins, so either size can differ from the editor. The footer counts JavaScript characters in the editor separately.

Who it is for

For the two byte sizes and the object or array with the most minified bytes.

When to use it

Use it when a payload is bulky and the heavy container is the question. This page does not rewrite the editor.

Key features

  • Two re-serialized sizes

    Formatted size is 2-space UTF-8. Minified size is compact UTF-8. Both are JSON.stringify of the parsed value.

  • Counts on the parsed value

    Max depth starts at 1. Then total keys, objects, arrays, strings, numbers, booleans, and nulls.

  • Eight largest containers

    Objects and arrays only, ranked by minified bytes. An empty path is shown as (root).

How to use JSON Size Analyzer

  1. 1Paste JSON, or leave {}. Wait about 200 milliseconds.
  2. 2Read Formatted size, Minified size, Max depth, Total keys, and the type counts.
  3. 3Read Largest paths. (root) is the whole value. scores is one container.
  4. 4Copy input copies the editor. Clear empties the box. Nothing is downloaded.

Example

Before

{"name":"Ada","scores":[1,null,true]}

After

Formatted 64 B. Minified 37 B. Max depth 3. Total keys 2. Objects 1, arrays 1, strings 1, numbers 1, booleans 1, nulls 1.

Footer 37 chars, and the status says Depth 3. Largest paths: (root) 37 B and scores 13 B.

Benefits

  • Bytes, not characters

    {"note":"café 😀","a.b":1,"nested":{"k":[false]}} is 49 editor characters, formatted 86 B, and minified 52 B. The emoji is 4 UTF-8 bytes.

  • The last duplicate key

    {"a":1,"a":2} is 13 editor characters and keeps 2. Formatted 12 B. Minified 7 B. Total keys 1. Largest path (root) 7 B.

Common use cases

  • Three users in one payload

    {"users":[{"id":1,"name":"Ada","note":"Keeps the warehouse keys"},{"id":2,"name":"Bo","note":"Short"},{"id":3,"name":"Cy","note":"Calls the supplier before Friday"}]} is 166 editor characters. Formatted 276 B. Minified 166 B. The 2-space form is 110 B larger. Depth 4. Keys 10. Objects 4, arrays 1, strings 6, numbers 3. Largest paths: (root) 166 B, users 156 B, users[2] 62 B, users[0] 55 B, users[1] 35 B.

Tips & best practices

  • 99 objects around a number reach depth 100 and are analyzed. 100 objects around that number show Nesting is too deep to analyze.
  • Above 12,582,912 characters (12 × 1024 × 1024) the message is This document is longer than about 12 million characters. Analysis is paused.

Common mistakes to avoid

  • Reading Formatted size as the paste. Ada’s editor is 37 characters. The 2-space rewrite is 64 B.
  • Counting characters as bytes. 49 characters become 52 minified bytes because the emoji is 4 UTF-8 bytes.
  • Expecting a string or number in Largest paths. Only objects and arrays are listed. A top-level string shows No objects or arrays to list.
  • Reading Minified size as the wire size. The 110 B gap is indent only. Gzip and HTTP headers are not applied.

Frequently asked questions

Why is Formatted size not the pasted text?

Two-space JSON.stringify of the parsed value. Ada’s 37-character paste measures 64 B.

How is Minified size calculated?

Compact JSON.stringify, then UTF-8 bytes. Ada is 37 B. Duplicate a keeps 2, so 13 typed characters measure 7 B.

How do Max depth and Total keys work?

The top value is depth 1. Ada’s array values are depth 3. id on three users counts three times. Two a keys in one object count once.

How do I read Largest paths?

Up to eight objects and arrays, by minified bytes. (root) is the top value. scores is 13 B. users[2] is 62 B. A dotted key is copied as-is, so a container named a.b is labeled a.b.

What do the errors and the two stops say?

{ shows Expected property name or '}' (line 1, column 2). An empty box shows Paste JSON to analyze. Depth past 100, or a stack overflow from parse or stringify, shows Nesting is too deep to analyze. Past 12,582,912 characters shows This document is longer than about 12 million characters. Analysis is paused.

Does Minified size include gzip?

No. Compact UTF-8 only. The three-user indent gap is 110 B. No HTTP headers.

Does any of this text leave the browser?

No. Parsing and both stringifies run in the page. Memory keeps the editor text under json-size-analyzer until a full reload.

Does this page change the editor?

No. The numbers are measurements. Rewriting the box is the JSON Formatter.

When another tool fits better

  • JSON Formatter. You want the editor rewritten with an indent or on one line. This page only measures those forms.
  • JSON Parser. You want to fold the parsed tree. This page ranks containers by minified bytes instead.

Conclusion

Reports UTF-8 sizes, depth, type counts, and the eight largest objects and arrays.

Ready to try JSON Size Analyzer?

Scroll back up to start now, or continue with another free developer tool.

Guides and glossary

Learn and reference material connected to JSON Size Analyzer.