数据存储单位换算器

将 GB 换算为 MB、TB 换算为 GB、GiB 换算为 GB,明确区分十进制前缀(kB、MB、GB、TB)和二进制前缀(KiB、MiB、GiB、TiB),并支持比特和字节。

更新于 已验证的示例:5

输入源单位下的数值,也可以输入带有自身单位的数值
试一试
转换后的数值
MB
转换后的数值: 1,073.741824 MB
有效数字:12;取最近值,等距时远离零
换算
1 GiB = 1,073.741824 MB
换算系数
1,073.741824
精确性
精确

1 GiB精确等于1,073.741824 MB。

每个二进制前缀比对应的十进制前缀大多少

KiB 对比 kB: 2.4%2.4%KiB 对比 kBMiB 对比 MB: 4.86%4.86%MiB 对比 MBGiB 对比 GB: 7.37%7.37%GiB 对比 GBTiB 对比 TB: 9.95%9.95%TiB 对比 TBPiB 对比 PB: 12.6%12.6%PiB 对比 PBEiB 对比 EB: 15.3%15.3%EiB 对比 EBZiB 对比 ZB: 18.1%18.1%ZiB 对比 ZBYiB 对比 YB: 20.9%20.9%YiB 对比 YB
1 GiB用各个数据存储单位表示 行数:25
单位数值定义
bit8,589,934,592基本单位
nibble2,147,483,6481 nibble = 4 bit,精确值
byte (B)1,073,741,8241 B = 8 bit,精确值
kilobyte (kB)1,073,741.8241 kB = 8,000 bit,精确值
兆字节 (MB)1,073.7418241 MB = 8,000,000 bit,精确值
吉字节 (GB)1.0737418241 GB = 8,000,000,000 bit,精确值
太字节 (TB)0.0010737418241 TB = 8,000,000,000,000 bit,精确值
petabyte (PB)0.0000010737418241 PB = 8 × 10¹⁵ bit,精确值
exabyte (EB)1.073741824 × 10⁻⁹1 EB = 8 × 10¹⁸ bit,精确值
zettabyte (ZB)1.073741824 × 10⁻¹²1 ZB = 8 × 10²¹ bit,精确值
yottabyte (YB)1.073741824 × 10⁻¹⁵1 YB = 8 × 10²⁴ bit,精确值
kibibyte (KiB)1,048,5761 KiB = 8,192 bit,精确值
mebibyte (MiB)1,0241 MiB = 8,388,608 bit,精确值
gibibyte (GiB)11 GiB = 8,589,934,592 bit,精确值
tebibyte (TiB)0.00097656251 TiB = 8,796,093,022,208 bit,精确值
pebibyte (PiB)9.536743 × 10⁻⁷1 PiB = 9.007199254740992 × 10¹⁵ bit,精确值
exbibyte (EiB)9.313226 × 10⁻¹⁰1 EiB = 9.223372036854775808 × 10¹⁸ bit,精确值
zebibyte (ZiB)9.094947 × 10⁻¹³1 ZiB = 9.4447329657392904274 × 10²¹ bit,精确值
yobibyte (YiB)8.881784197 × 10⁻¹⁶1 YiB = 9.6714065569170333976 × 10²⁴ bit,精确值
kilobit (kbit)8,589,934.5921 kbit = 1,000 bit,精确值
megabit (Mbit)8,589.9345921 Mbit = 1,000,000 bit,精确值
gigabit (Gbit)8.5899345921 Gbit = 1,000,000,000 bit,精确值
terabit (Tbit)0.0085899345921 Tbit = 1,000,000,000,000 bit,精确值
kibibit (Kibit)8,388,6081 Kibit = 1,024 bit,精确值
mebibit (Mibit)8,1921 Mibit = 1,048,576 bit,精确值
计算方法 S
  1. 将gibibyte换算为bit

    1 GiB×8,589,934,592 bitGiB=8,589,934,592 bit1\ \text{GiB} \times 8{,}589{,}934{,}592\ \tfrac{\text{bit}}{\text{GiB}} = 8{,}589{,}934{,}592\ \text{bit}

    1 GiB = 8,589,934,592 bit,精确值

  2. 将bit换算为兆字节

    8,589,934,592 bit÷8,000,000 bitMB=1,073.741824 MB8{,}589{,}934{,}592\ \text{bit} \div 8{,}000{,}000\ \tfrac{\text{bit}}{\text{MB}} = 1{,}073.741824\ \text{MB}

    1 MB = 8,000,000 bit,精确值

  3. 合并换算系数

    1 GiB=8,589,934,5928,000,000 MB=1,073.741824 MB1\ \text{GiB} = \frac{8{,}589{,}934{,}592}{8{,}000{,}000}\ \text{MB} = 1{,}073.741824\ \text{MB}

    两个单位的定义都精确,且换算结果为有限小数,因此显示的每一位数字都精确。

关于数据存储单位换算器

Data sizes use two sets of prefixes. The decimal ones follow the SI: 1 kB = 1,000 bytes, 1 MB = 10⁶ and 1 GB = 10⁹ bytes. The binary ones, approved by the IEC in December 1998 and now part of IEC 80000-13, step by 1,024: 1 KiB = 1,024 bytes, 1 MiB = 2²⁰ and 1 GiB = 2³⁰ bytes. A byte is 8 bits, and every conversion between these units is exact.

The default converts 1 GiB to 1,073.741824 MB. The same gap explains why a new drive looks smaller: a 1 TB drive holds 10¹² bytes, which software counting in binary units shows as 931.32 GiB, often labelled “931 GB”.

The gap grows with each prefix: 2.4% at kilo, 7.37% at giga, 9.95% at tera and 20.9% at yotta. Memory chips come in powers of two, so RAM sizes are binary even when written GB, while drive makers and network speeds use decimal prefixes.

计算示例

1 GiB in MB

数值
1 GiB
从
gibibyte (GiB)
到
megabyte (MB)
转换后的数值
1,073.741824 MB
精确性
精确

核验来源:2³⁰ bytes = 1,073,741,824 bytes (IEC 80000-13); ÷ 10⁶

A 1 TB drive in GiB

数值
1 TB
从
terabyte (TB)
到
gibibyte (GiB)
转换后的数值
931.322574615 GiB

核验来源:10¹² / 2³⁰ = 244140625/262144, a terminating decimal (Python fractions)

1 KiB in kB

数值
1 KiB
从
kibibyte (KiB)
到
kilobyte (kB)
转换后的数值
1.024 kB

核验来源:1024 bytes / 1000 bytes

Largest gap: 1 YiB in YB

数值
1 YiB
从
yobibyte (YiB)
到
yottabyte (YB)
转换后的数值
1.20892581961 YB

核验来源:2⁸⁰ / 10²⁴ = 1.208925819614629174706176 exactly (Python fractions)

常见问题

Why does my 1 TB drive show only 931 GB?

Because the maker and the operating system count differently. The drive's 1 TB is 10¹² bytes; Windows divides by 2³⁰ and shows 931.32 while labelling it GB. Nothing is missing, since 10¹² ÷ 1,073,741,824 = 931.32; formatting and recovery partitions take a little more. macOS has counted in decimal since OS X 10.6 and shows the same drive as 1 TB.

Is 1 GB 1,000 MB or 1,024 MB?

Under the SI and IEC 80000-13, 1 GB is exactly 1,000 MB (10⁹ bytes), and the binary unit is 1 GiB = 1,024 MiB (2³⁰ bytes). Drive makers and macOS use the decimal meaning; RAM and Windows use the binary one while writing GB. The “1.44 MB” floppy disk mixed the two: 1,440 × 1,024 bytes.

How many bits are in a byte?

Eight. IEC 80000-13 defines the byte as 8 bits, also called an octet. File sizes are counted in bytes (B) and network speeds in bits per second (bit/s), so a 100 Mbit/s connection moves at most 12.5 MB per second; a capital B marks bytes.

What is a GiB?

A gibibyte, 2³⁰ = 1,073,741,824 bytes. The IEC created the binary prefixes kibi, mebi, gibi and tebi so that kilo, mega and giga could keep their SI meanings of 10³, 10⁶ and 10⁹. Many Linux tools and technical specifications use GiB; Windows shows the same quantity labelled GB.

How many GB are in 1 TB?

1,000 GB in decimal units, which is how drives are sold. In binary units 1 TiB is 1,024 GiB, and a decimal 1 TB is 931.32 GiB. The converter keeps TB, TiB, GB and GiB separate, so you can see that 1 TiB is 1,099.51 GB, about 10% more than 1 TB.

“数据存储单位换算器”有多准确?

准确性取决于输入值和方法的假设。十进制运算使用50位有效数字,但估算、数值方法和源数据的精度可能较低;显示时的舍入并不能消除这些限制。 已按独立来源核验的计算示例:5。 例如,“1 GiB in MB”根据2³⁰ bytes = 1,073,741,824 bytes (IEC 80000-13); ÷ 10⁶进行核验。

这种方法出自哪里?

NIST SP 811 (2008), Guide for the Use of the SI, Appendix B — conversion factors; NIST Handbook 44, Appendix C — General tables of units of measurement; NIST — Prefixes for binary multiples (IEC 80000-13).

关于此计算器

xto=xfrom×ffromftof=one unit expressed in bit\begin{gathered} x_{\text{to}} = x_{\text{from}} \times \dfrac{f_{\text{from}}}{f_{\text{to}}} \\ f = \text{one unit expressed in } \text{bit} \end{gathered}

来源

  1. NIST SP 811 (2008), Guide for the Use of the SI, Appendix B — conversion factors
  2. NIST Handbook 44, Appendix C — General tables of units of measurement
  3. NIST — Prefixes for binary multiples (IEC 80000-13)

已对照来源验证

此计算器包含 5 个已解示例,答案来自独立来源。这些示例会在测试套件中运行,你也可以在此运行验证。

相关计算器