Skip to content
UniKit

Data size converter

Convert data sizes — bits, bytes and KB/KiB, MB/MiB, GB/GiB, TB/TiB, PB/PiB — and make the 1000 versus 1024 distinction explicit.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Value

Result

The source to target line first, then every common unit.

Enter a data size to convert

Units: 0

What this tool does

  • Explain why a 1 TB drive shows about 931 GiB in the OS — vendors use 1000, systems use 1024.
  • Convert before estimating transfer time: a 100 Mbps line is about 12.5 MB/s.
  • Check constants before coding: 1 KiB = 1024 B and 1 KiB = 1.024 kB.

Example

Input

1

Output

千字节(1000) (kB) → 千字节(1024) (KiB):1 kB = 0.976563 KiB
比特 (bit) = 8000 bit
字节 (B) = 1000 B
千字节(1000) (kB) = 1 kB
千字节(1024) (KiB) = 0.976563 KiB
兆字节(1000) (MB) = 0.001 MB
兆字节(1024) (MiB) = 0.000954 MiB
吉字节(1000) (GB) = 0.000001 GB
吉字节(1024) (GiB) = 0.000001 GiB
太字节(1000) (TB) = 0 TB
太字节(1024) (TiB) = 0 TiB
拍字节(1000) (PB) = 0 PB
拍字节(1024) (PiB) = 0 PiB

1 KiB = 1024 B and 1 KB = 1000 B — a 2.4% gap; drive vendors use 1000, operating systems use 1024.

Frequently asked questions

What exactly is the difference between KB and KiB?

KB counts 1000 bytes while KiB counts 1024, so 1 KiB = 1.024 KB. This is the classic gotcha: a drive sold as 1 TB (10¹² B) shows about 931 GiB in an OS that uses 2⁴⁰ B per TiB.

Why is a “MB” sometimes 1048576 bytes?

That is a MB used as a MiB. IEC 80000-13 reserves KB/MB/GB for powers of 1000 and KiB/MiB/GiB for powers of 1024. Windows historically used 1024 while writing KB/MB, which caused the confusion; this tool lists both.

How do bits relate to bytes?

1 byte = 8 bits. Bandwidth is quoted in bits per second (100 Mbps) while downloads show bytes per second (12.5 MB/s), so divide by 8.

Is the precision enough?

Yes. 1 PB in bits is 8 × 10¹⁵, still inside the JavaScript safe integer range. Values print via Number(value.toFixed(6)) and integer conversions stay exact.

Keywords:数据大小换算KB MB GB 换算KiBMbps硬盘容量字节1024 还是 1000data size converter

Related tools