Cryonel

JSON Size Analyzer

Measure a JSON document’s UTF-8 byte size, minification savings, container counts, and nesting depth directly in your browser.

How to use it

  1. Paste strict JSON, drop a local file into the input, or select Load Example.
  2. Select Analyze Size or press Ctrl/ + Enter.
  3. Compare the original, minified, and pretty-printed UTF-8 byte counts.
  4. Copy or download the report when you need to document a payload review.

What the JSON size metrics mean

Original size is the UTF-8 byte count of the exact text pasted into the editor. Minified size parses the document and serializes it without formatting whitespace. Pretty-printed size serializes it with two-space indentation. Formatting overhead shows how many original bytes can be removed by minification and the percentage of the original input they represent.

Bytes are more useful than JavaScript character counts for HTTP payload work. ASCII characters usually occupy one UTF-8 byte, while many accented characters and emoji occupy more. That means two strings with the same visible character length can have different transfer and storage sizes.

Structure and nesting counts

The analyzer counts JSON objects, arrays, object properties, array items, primitive values, and maximum container depth. Primitive values include strings, numbers, booleans, and null. Maximum depth counts object and array containers: a root object has depth one, and an object nested inside its array has depth three.

Structural counts help explain why a payload is costly even when individual values are short. Repeated property names can dominate large arrays of similar objects. Deep nesting can make validation, mapping, rendering, and debugging more difficult. These metrics do not assign a quality score; they expose the shape so you can decide whether every field and layer is needed.

Minification versus compression

Minification removes spaces, indentation, and line breaks that are not part of string values. It does not shorten property names or change data. HTTP compression such as gzip or Brotli is a separate transport step that can reduce repeated keys and values much further. A minified byte count is therefore not a prediction of the final compressed response size.

For browser APIs, enable server compression and inspect the transferred size in developer tools. Keep readable formatting in source fixtures and logs where it helps people, then let the response pipeline minify or compress data where appropriate. Do not sacrifice clear field names solely to reduce a few uncompressed bytes without measurement.

Common uses

Security and privacy

The JSON is parsed and measured entirely in the current tab. Cryonel does not upload the document or report. Very large files still consume memory in your browser because both parsed and serialized forms exist during analysis, so use a representative sample when a multi-megabyte document makes the tab slow.

Frequently Asked Questions

Does the analyzer count characters or bytes?

It counts UTF-8 bytes, so non-ASCII characters can use more than one byte.

Is minified JSON the same size as a compressed response?

No. Minification removes formatting whitespace, while gzip or Brotli also compress repeated content during transfer.

Can Cryonel see the JSON I analyze?

No. Parsing, byte measurement, and structural counting run in the current browser tab.

Related Tools