Back to Home

Data Converter

Convert between bits, bytes, KB, MB, GB, TB and PB, using the binary or decimal standard.

0Bits
0Bytes
0Kilobytes
0Megabytes
0Gigabytes
0Terabytes
0Petabytes
Data Unit Guide

1 byte = 8 bits.
Binary: 1 KB = 1,024 bytes, 1 MB = 1,024 KB, 1 GB = 1,024 MB, and so on.
Decimal: 1 KB = 1,000 bytes, 1 MB = 1,000 KB, 1 GB = 1,000 MB, and so on.

Note: Storage manufacturers use the decimal standard, while Windows reports sizes using 1,024. That is why a drive sold as 500 GB shows as about 465.66 GB in Windows.

Embed This Calculator on Your Website

Copy and paste the code below to add this free calculator to your blog or site:

Data Unit Converter Guide

File sizes, storage devices and cloud plans are all described in units such as megabytes, gigabytes and terabytes, but those units can mean slightly different amounts depending on who is measuring. This Data Converter converts between bits, bytes, kilobytes, megabytes, gigabytes, terabytes and petabytes, and lets you choose between the binary (1,024) and decimal (1,000) standards.

Enter a value, pick its unit and the standard, and the converter shows the same amount in every unit at once. It is useful for checking file sizes, comparing storage plans, and understanding why a drive shows less space than its label says.

Why Sizes Don't Match: A drive sold as "1 TB" holds 1,000,000,000,000 bytes (decimal). Windows divides by 1,024 three times and labels the result in GB, so it shows about 931.32 GB. The drive has not lost any space. The two systems simply use different definitions of a "gigabyte".

How Digital Data is Measured

1. Bits vs. Bytes

A bit (b) is the smallest unit of data, a 0 or a 1. A byte (B) is 8 bits. File sizes are usually given in bytes (MB, GB), while internet connection speeds are usually given in bits per second (Mbps).

2. Kilobytes, Megabytes and Gigabytes

These are the everyday units for documents, photos, apps and videos. Each step up multiplies by 1,024 in the binary standard, or by 1,000 in the decimal standard.

3. Terabytes and Petabytes

Terabytes are common for hard drives, SSDs and backups. Petabytes (1,024 or 1,000 terabytes) are used for very large storage systems.

Binary (1,024) vs. Decimal (1,000)

The converter supports both standards:

  • Binary: 1 KB = 1,024 bytes. Windows reports file and drive sizes this way and labels them KB, MB and GB. The IEC standard calls these units kibibytes (KiB), mebibytes (MiB) and gibibytes (GiB) to avoid confusion.
  • Decimal (SI): 1 KB = 1,000 bytes. Storage manufacturers use this standard, as does macOS, and network speeds are quoted in decimal bits (1 Mbps = 1,000,000 bits per second).

Result = Value × (Source Unit in Bytes ÷ Target Unit in Bytes)

Where a unit in bytes is 1 for bytes, 1/8 for bits, and Basen for KB, MB, GB, TB and PB (n = 1 to 5), with Base = 1,024 or 1,000.

How to Use the Data Converter

  1. Enter the value you want to convert, for example 500.
  2. Choose the source unit, for example Megabytes.
  3. Choose the measurement standard: binary (1,024) or decimal (1,000).
  4. Read the results. The same amount is shown in every unit and updates as you type. Very large or very small numbers are shown in scientific notation, such as 9.536743164e-7.
Internet Speed Tip: Speeds are quoted in bits per second, file sizes in bytes. Divide megabits by 8 to get megabytes: 80 Mbps is 10 MB per second in theory (decimal). Real downloads are usually a little slower because of network overhead.

Examples (Calculated With This Converter)

EnterStandardResult
1 GBBinary1,024 MB
1 GBDecimal1,000 MB
1 MBBinary8,388,608 bits
500,000,000,000 bytes (a "500 GB" drive)Binary465.6612873 GB
1,000,000,000,000 bytes (a "1 TB" drive)Binary931.3225746 GB
80,000,000 bitsDecimal10 MB
1 PBDecimal1,000 TB

Common Data Unit Reference

Unit Abbreviation Binary Equivalent Decimal Equivalent
KilobyteKB1,024 bytes1,000 bytes
MegabyteMB1,024 KB1,000 KB
GigabyteGB1,024 MB1,000 MB
TerabyteTB1,024 GB1,000 GB
PetabytePB1,024 TB1,000 TB
Free Space Note: Many SSD makers suggest leaving some free space on a drive, often around 10% to 20%, because drives can slow down when they are very full. Check your manufacturer's guidance.
Disclaimer: Results depend on whether you choose the decimal (1,000) or binary (1,024) standard. Check the standard your device, operating system or provider uses, and confirm figures with the manufacturer before relying on them for critical storage planning.

Digital Storage: Frequently Asked Questions

Why does my 1 TB drive show only about 931 GB?
The manufacturer counts 1 TB as 1,000,000,000,000 bytes (decimal). Windows converts bytes using 1,024 and labels the result GB, so the same drive shows about 931.32 GB. Formatting and system files take a little more space, but the main gap comes from the two definitions.
What is a "gibibyte" (GiB)?
A gibibyte (GiB) is exactly 1,024 mebibytes, or 1,073,741,824 bytes. The IEC introduced the "kibi, mebi, gibi" names so that binary sizes (powers of 1,024) could be told apart from decimal sizes (powers of 1,000), which use the plain names kilobyte, megabyte and gigabyte.
How many MB are in a GB?
It depends on the standard. With the binary standard there are 1,024 MB in 1 GB, and with the decimal standard there are 1,000 MB. Choose the standard in the converter to see both.
Is a bit (b) the same as a byte (B)?
No. A capital "B" stands for byte and a lowercase "b" stands for bit. There are 8 bits in 1 byte.
Which standard should I use?
Use the decimal standard to compare with sizes quoted by storage manufacturers, cloud plans and network speeds. Use the binary standard to match what Windows shows for file and drive sizes.
Why does the converter show a message or nothing?
Results show 0 until you enter a value. Negative numbers are not accepted, because a data size cannot be negative, and the value must be no larger than 1,000,000,000,000,000 in the unit you chose.