Table Size Estimator

Estimate table disk usage from schema and row count

Table Size Estimator is a free online Developer tool. Estimate table disk usage from schema and row count Related terms: 表大小 · 估算 · 存储 · 行数 · 数据类型 · 磁盘. Use it on this page without signing in.

列定义
列名数据类型参数(n / p,s)字节数
8
194
386
8
500
每行数据字节
1096 B
+ 行开销 27 B = 1123 B
原始数据大小
1.05 GB
1,000,000
含页开销数据
1.11 GB
InnoDB (16KB 页) 页开销
估算总大小
1.44 GB
含索引 30%
计算明细
每行纯数据1096 B
每行 InnoDB 开销(标头+事务ID+回滚指针)27 B
每行合计1123 B
总行数1,000,000
原始数据合计1.05 GB
页内部开销(InnoDB (16KB 页)+6%
含页开销数据1.11 GB
索引开销(数据 30%)341.37 MB
估算总大小1.44 GB

基于 MySQL InnoDB 数据类型字节大小估算。VARCHAR 按 UTF-8 最大 3 字节/字符计算;TEXT/JSON/BLOB 使用可配置的均值。实际占用受引擎压缩、NULL 位图、碎片等因素影响,仅供参考。

Help

使用说明

  1. 定义表的列结构(列名 + 数据类型)
  2. 输入预估行数
  3. 自动计算每行字节数、总数据大小、含索引和开销的估算总大小

常见问题

  • 估算准确吗? 基于数据类型的理论字节数,实际占用因引擎和压缩而异
  • 索引占多少? 一般索引大小约为数据大小的 20%-50%
  • VARCHAR 怎么算? 按实际存储长度计算,UTF-8 中文约 3 字节/字符

More Developer

View all

FAQ about Table Size Estimator

What can Table Size Estimator do?

Table Size Estimator is a Developer tool. Estimate table disk usage from schema and row count You can finish the job on this page.

Who should use Table Size Estimator?

Anyone handling 表大小 · 估算 · 存储 · 行数 · 数据类型 · 磁盘 who does not want to install desktop software can use Table Size Estimator in the browser.

Is Table Size Estimator safe? Is my data uploaded?

This tool runs in your browser. We do not collect the content you enter into Table Size Estimator just because you used it.

What similar tools exist?

Related tools in the same Developer group are listed at the bottom of this page.