Simple online tools for developers, networking, text and conversions.

Developer Tools

JSON Size Calculator

Measure JSON size in bytes, characters, and formatted vs minified versions.

Tool

Use this JSON Size Calculator to measure how large a JSON payload is in characters and UTF-8 bytes, and to compare formatted and minified output sizes. It is useful for API debugging, payload budgeting, request limit checks, webhook analysis, and understanding how much space JSON takes before transport or storage. The tool also gives a compact summary for valid JSON input.

About this tool

Use this JSON Size Calculator to measure how large a JSON payload is in characters and UTF-8 bytes, and to compare formatted and minified output sizes. It is useful for API debugging, payload budgeting, request limit checks, webhook analysis, and understanding how much space JSON takes before transport or storage. The tool also gives a compact summary for valid JSON input.

Use json size calculator when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

Learn more

Why use this tool

How to use

  1. Paste valid JSON into the input box
  2. Click Run Tool to calculate the size summary
  3. Review character count, byte size, and minified size
  4. Use the result for request planning or debugging
  5. If needed, minify the JSON afterward to reduce size

Examples

Example

Input

{"name":"Anna","role":"admin"}

Output

{
  "characters": 30,
  "utf8Bytes": 30,
  "minifiedCharacters": 30,
  "formattedCharacters": 39
}

Useful for understanding the size of a small compact object.

Example

Input

{"message":"Привет"}

Output

{
  "characters": 20,
  "utf8Bytes": 26,
  "minifiedCharacters": 20,
  "formattedCharacters": 25
}

Useful when character count and byte count differ because of Unicode.

Common errors

The JSON input is invalid

Fix: Validate or format the JSON first so the size can be calculated correctly.

The user expects bytes and characters to always match

Fix: Unicode characters can take more than one byte in UTF-8.

Only raw text is pasted instead of JSON

Fix: This tool measures valid JSON payloads, not arbitrary text.

The user expects network compression size

Fix: This tool measures raw JSON size, not compressed transport size.

Whitespace-heavy formatted JSON is compared with compact payloads incorrectly

Fix: Check both formatted and minified counts to understand the real difference.

FAQ

What does JSON Size Calculator measure?

It measures character count, UTF-8 byte size, and compares formatted and minified JSON lengths.

Why are bytes and characters different?

Because some Unicode characters use more than one byte in UTF-8.

Does it work on invalid JSON?

No. The tool expects valid JSON so it can calculate accurate structured sizes.

What is the difference between formatted and minified size?

Formatted JSON includes indentation and line breaks, while minified JSON removes unnecessary whitespace.

Does this tool show compressed network size?

No. It shows raw JSON size, not gzip or transport-compressed size.

Use cases

Related tools