sql → storage estimate

Table Storage Size Estimator

Paste CREATE TABLE statements and get a per-column byte-size estimate for Postgres, MySQL, and DuckDB.

Runs fully in your browser · nothing is sent anywhere

This estimates raw column data size, not actual on-disk table size. Real storage also includes page/tuple overhead, indexes, TOAST/compression, and alignment padding — all engine-specific and not something a static tool can predict without an actual database. Numbers below are badged exact (fixed-width types), max (worst-case size for variable-length types), or N/A (genuinely variable — we don't guess).

schema.sql
Waiting for input…0 chars
estimate
Paste CREATE TABLE statements and click Estimate.

How the numbers are derived

Advertisement