Skip to main content

Convert file sizes between bytes, KB, MB, GB and binary units such as KiB, MiB and GiB. Supports decimal and scientific notation, with separate 1000-based and 1024-based unit tables.

File size conversion

A numeric value, viewed in both decimal and binary units.

local operations
Supports decimal and scientific notation, no need to enter units.
give it a try
Example conversionByte B

1000000000

1 KB = 1000 B · 1 KiB = 1024 B

1000000000 B

unitConversion resultOperation
B1000000000
KB1000000
MB1000
GB1
TB0.001
PB0.000001
KiB976562.5
MiB953.67431640625
GiB≈ 0.93132257461547851562
TiB≈ 0.00090949470177292823
PiB≈ 0.00000088817841970012

Use integer fraction operations to avoid loss of precision for large integers. Displays up to 20 decimal places; ≈ represents a truncated approximation.

Instructions for use

  1. Fill in the value without units and select the original unit.
  2. Select the target unit in "Convert to" and the results will be updated with the input.
  3. Copy the target results; when comparison is required, the SI / IEC unit table can be switched below.

Input and output examples

Example input
1024 MiB → GiB
Example output
1 GiB

Both MiB and GiB are rounded up to 1024; 1024 MB is 1.024 GB.

FAQ

The nominal capacity of the equipment is usually converted in decimal system, and some systems are converted in binary system. 1 TB is approximately 931.32 GiB, and partitions, file systems, and reserved space may also take up capacity.

Internally calculated using integer fractions; display beyond 20 decimal places is truncated and approximate results are marked with ≈. This tag is retained when copying.

Calculation basis and reference materials

Convert the input to bytes first, then divide by the number of bytes in the target unit. KB, MB, and GB are rounded by 1000, and KiB, MiB, and GiB are rounded by 1024; use integer fractional operations, and indicate approximation when the display precision is exceeded.

Content check: · About this site and content description

Related tools