Analizador de tamaño JSON

Analiza el tamaño de los datos JSON con treemap interactivo

JSON Input

Loading editor...

Size Breakdown

Size analysis will appear here...

Find out exactly which keys make your payload heavy

Slow APIs and large databases often boil down to one or two oversized fields buried in an otherwise lean payload. A size analyzer breaks the document down by byte contribution and visualizes it as a treemap, so you can see at a glance which keys deserve attention before deciding what to trim, paginate, or move out of JSON entirely.

Use the analyzer when you need to

Diagnose a slow API response

Identify the field consuming most of the payload before you optimize, paginate, or compress.

Audit a stored document

See which keys take up the most room in a NoSQL or document-database record.

Plan a payload-shrinking effort

Prioritize the highest-impact fields to remove or compress instead of micro-optimizing small ones.

How to analyze JSON size

  1. 1

    Paste the JSON document into the editor.

  2. 2

    Click Analyze to break the document down by key with byte counts.

  3. 3

    Hover or click the treemap to drill into the biggest contributors.

Common size-analysis workflows

Optimize a hot API endpoint

Identify the biggest fields and either trim, paginate, or move them out of the response body.

Audit a document database row

See which embedded subdocuments are pushing rows over storage limits.

Validate a compression strategy

Compare the breakdown before and after a refactor to confirm the savings landed where expected.

Herramientas relacionadas

Preguntas frecuentes

Desglosa tu documento JSON por tamaño y muestra qué claves y valores consumen más bytes. La visualización tipo treemap, interactiva, facilita detectar campos sobredimensionados, datos redundantes y oportunidades de optimización.

El tamaño se mide en bytes de la representación minificada del JSON (sin espacios en blanco). Esto se aproxima al tamaño real del payload al transmitirse por red, que es lo relevante para el rendimiento de una API.

Tras identificar los campos más grandes, considera: eliminar campos no usados, acortar nombres de claves en respuestas de API, sacar datos binarios grandes (imágenes) fuera del JSON hacia endpoints separados, paginar arrays y habilitar compresión GZIP en el servidor.

En APIs web, intenta mantener las respuestas por debajo de 100KB. En APIs mobile-first, apunta a menos de 50KB. Respuestas por encima de 1MB deberían paginarse o rediseñarse. Usa compresión GZIP, que normalmente reduce el tamaño del JSON entre un 70% y un 90%.