Technology / calculator

File size converter

Convert bytes and decimal KB, MB, GB, TB or binary KiB, MiB, GiB, TiB. See the target quantity and its equivalent in bytes.

Calculator

Calculator

Convert decimal or binary file sizes.

SI KB–TB use powers of 1,000 bytes. IEC KiB–TiB use powers of 1,024 bytes. A byte contains 8 bits.

Storage quantity

Your result

Enter details to see the result.

Complete the inputs and calculate to see the main result and its supporting breakdown.

Example

Worked example

Example inputs

File size
1
Convert from
MiB (IEC binary)
Convert to
MB (SI decimal)

Calculation breakdown

Canonical bytes = value × source unit factor. Converted value = canonical bytes ÷ target factor. SI factors are powers of 1,000; IEC factors are powers of 1,024.

Bytes
1,048,576

Example result

Converted file size

1.048576 MB

Fractional quantities are allowed; rounding is for display only.

How to interpret the result

Canonical bytes = value × source unit factor. Converted value = canonical bytes ÷ target factor. SI factors are powers of 1,000; IEC factors are powers of 1,024. Display values round to eight decimal places, with scientific notation for very small or large values. Fractional byte quantities are allowed as mathematical conversions; actual storage allocation is discrete.

Common storage conversions (SI decimal / IEC binary)
Common storage conversions (SI decimal / IEC binary)
MiBMB
11.048576
1010.48576
100104.8576

How to use this calculator

  1. Select the source and target file units, checking for the i in binary prefixes.
  2. Enter a non-negative source quantity.
  3. Convert and compare the target value with canonical bytes; retain the unit when recording the result.

How it works

Formula

Canonical bytes = value × source unit factor. Converted value = canonical bytes ÷ target factor. SI factors are powers of 1,000; IEC factors are powers of 1,024.

What is the difference between MB and MiB?

One MB is 1,000,000 bytes; one MiB is 1,048,576 bytes. Decimal and binary labels describe different quantities, so changing the label without converting changes the stated size. This tool allows fractional byte quantities for mathematical comparisons.

What this calculator does

Choose decimal or binary storage units to compare file sizes and see the underlying byte quantity. MB and MiB are kept distinct.

Who this is useful for

People comparing storage or file-size labels that mix decimal KB/GB with binary KiB/GiB and need an explicit byte equivalent.

Inputs you will need

Required or selected inputs

  • File size
  • Convert from
  • Convert to

Assumptions

  • A byte is 8 bits. B–TB are decimal units and KiB–TiB are binary units, following their explicitly named definitions.

Limitations

  • Display values round to eight decimal places, with scientific notation for very small or large values. Fractional byte quantities are allowed as mathematical conversions; actual storage allocation is discrete.

Useful next steps

Use the file quantity in a download estimate with File download time calculator.

For an upstream transfer estimate, use File upload time calculator.

References

NIST: binary prefixes, bytes, and decimal units — Reference definitions distinguish decimal and binary prefixes and define eight bits per byte.

See how HandyChest handles units, validation, rounding, and testing, or Report a problem with this calculator.

Good to know

Frequently asked questions

Why are MB and MiB different?

One MB is 1,000,000 bytes and one MiB is 1,048,576 bytes. Binary prefixes use powers of 1,024, while decimal prefixes use powers of 1,000.

Keep going