Skip to content

Data Size Converter

Convert between bits, bytes, kilobytes, megabytes, gigabytes and terabytes.

💾 Computing

Enter your values and press Calculate to see the result and the working.

Share WhatsApp Telegram X Email

Formula used

b=8⁢B
bytesvalue=B
megabytes=B1000000
gigabytes=B1000000000

Variables

B Size in bytes
The size normalised to bytes (B)

What does this calculator do?

Converts any data size between the common units: bits, bytes and their multiples up to terabytes.

When would you use it?

When comparing advertised storage against what a device actually shows, estimating file sizes, or tracking a data plan.

How the formula works

A byte is eight bits — the first source of confusion: internet speeds are measured in bits per second while file sizes are in bytes, which is why a download can feel eight times slower than expected.

The second is what "kilo" means. In SI it is 1000, which is what storage manufacturers use. Operating systems traditionally use 1024 (a power of two). That is why a 1 TB drive shows as about 931 GB in Windows — nothing is missing, they are just different units.

This calculator uses the decimal system (1000), the international standard and the one used in storage marketing.

What does the result mean?

The list shows the same size in every unit. If you are comparing against a figure from an operating system, expect a gap of about 7% at gigabyte scale and 10% at terabyte scale, because of the 1000-versus-1024 difference.

Common mistakes

Confusing bits (lowercase b) with bytes (uppercase B) is the classic error and is off by a factor of eight. A "100 Mbps" connection delivers about 12.5 MB per second.

Worked example

A 500 MB file

What is 500 MB in bytes and gigabytes?

Calculation method

Assumptions

  • The international decimal system, where kilo means 1000.

Last reviewed:

Methodology