Skip to main content

Tech & wiring

File Size Calculator: Convert Between Bits, Bytes & Other Units

Convert file size between bits, bytes, KB, MB, GB, TB, PB, and binary units (KiB, MiB, GiB). See how the math works and compare common media sizes.

01

File size

Enter a size and unit; results update as you type. Use binary (1024) like most OSes, or decimal (1000) for vendor and network specs.

Base
Equivalent size

1 GiB expressed as:

bits8,589,934,592
bytes1,073,741,824
kibibytes (KiB)1,048,576
mebibytes (MiB)1,024
gibibytes (GiB)1
tebibytes (TiB)0.0009765625
pebibytes (PiB)0.0000009537
exbibytes (EiB)0.0000000009

Information hub

How the math works

Binary (IEC): each step is 1024 (2¹⁰). So 1 KiB = 1024 B, 1 MiB = 1024 KiB, 1 GiB = 1024 MiB. One byte = 8 bits.

  • Using binary (1024): 1 GiB = 1024^3 = 1,073,741,824 bytes.
  • 1 × 1,073,741,824 = 1,073,741,824 bytes.
  • Total: 1,073,741,824 bytes = 8,589,934,592 bits.

Common media and storage sizes

Sizes vary by format and quality; use this as a ballpark.

3.5" floppy1.44 MB
CD (74–80 min)700 MB
DVD-R single layer4.7 GB
DVD-R dual layer8.5 GB
Blu-ray single layer25 GB
Typical MP3 song4 MB
1 min uncompressed WAV10 MB
1 hr SD video1 GB
1 hr 1080p video6 GB

File Sizes Explained: Bits, Bytes, and Why 1024

File size turns up in downloads, storage, and email limits. Most of the confusion is either bits vs bytes or decimal (1000) vs binary (1024). A few basics clear that up.

Core ideas

Bits and bytes

A bit is a single 0 or 1. A byte is 8 bits and can represent one character (e.g. a letter or digit). Speeds are in bits per second (Mbps); file sizes are in bytes (KB, MB, GB). One byte = 8 bits.

Binary (1024) vs decimal (1000)

Binary: 1 KiB = 1024 B, 1 MiB = 1024 KiB. Used by Windows and most OSes for file and drive size. Decimal: 1 KB = 1000 B, 1 MB = 1000 KB. Used by storage vendors and many networks. Same label "GB" can mean different amounts depending on who’s measuring.

Why your "TB" drive looks smaller

A drive sold as 2 TB holds 2 trillion bytes (2 × 10¹²). In binary that’s 2 × 10¹² ÷ 1024³ ≈ 1.82 TiB. Windows reports in binary but often labels it "TB," so you see ~1.82 TB. No bytes are missing, just different units.

IEC vs SI prefixes

IEC (binary): KiB, MiB, GiB, TiB (1024-based). SI (decimal): KB, MB, GB, TB (1000-based). Using the right one avoids the "why is my drive smaller?" surprise when you compare vendor specs to what the OS shows.

File Size Calculator: Convert Bits, Bytes, KB, MB, GB, TB

Convert between bits, bytes, kilobytes, megabytes, gigabytes, and terabytes in binary (1024) or decimal (1000). Matches how Windows reports size or how vendors label drives. Free, runs in your browser.

How the Math Works

File-size conversion uses two bases. Binary (IEC) multiplies by 1 024 at each step; decimal (SI) multiplies by 1 000:
1  GiB=10243=1,073,741,824  bytes1\;\text{GiB} = 1024^3 = 1{,}073{,}741{,}824\;\text{bytes}
1  GB=10003=1,000,000,000  bytes1\;\text{GB} = 1000^3 = 1{,}000{,}000{,}000\;\text{bytes}
To convert between bits and bytes:
bytes=bits8,bits=8×bytes\text{bytes} = \frac{\text{bits}}{8}, \quad \text{bits} = 8 \times \text{bytes}
  • Binary (1 024):
    KiB, MiB, GiB, TiB — used by Windows, Linux, and most file managers
  • Decimal (1 000):
    KB, MB, GB, TB — used by drive manufacturers, ISPs, and SI standards
  • Bits vs. Bytes:
    1 byte = 8 bits. Speeds use bits (Mbps); file sizes use bytes (MB)

Worked example: Convert 2 TB (decimal, as labeled by the drive manufacturer) to GiB (as shown by Windows).

  • 2 TB = 2 × 1012 = 2 000 000 000 000 bytes
  • In GiB: 2 000 000 000 000 ÷ 1 02431 862.6 GiB

That’s why a “2 TB” drive shows roughly 1 863 GB in Windows—same bytes, different base. No storage was lost; the labels simply use different multipliers.

How to Use This Calculator

Type a number into the input field and select its unit from the dropdown—options range from bits and bytes through kilobytes, megabytes, gigabytes, terabytes, and beyond to exabytes. Toggle the base switch: choose binary (1 024) to match how Windows and most operating systems report file and drive sizes, or decimal (1 000) to match storage vendor labels and ISP data caps. The result appears instantly in every other unit so you can read off whichever conversion you need without manual arithmetic. Use binary mode when checking why a drive appears smaller than advertised, or decimal mode when comparing a file against an email attachment limit or cloud storage quota.

What this tool does

Enter a file size and choose the unit, bits, bytes, or any of the larger prefixes (KB through EB). The result appears in every other unit as you type. Switch to binary (1024) when you want the same convention as Windows and most file managers, or decimal (1000) when you’re comparing to storage specs or data caps. The Information Hub below the calculator shows how the conversion is derived and a reference table of common media sizes.

Bits vs bytes

File size is in bytes (and units built on bytes). Speeds are in bits per second. Mbps, Gbps. One byte is 8 bits, so bytes=bits8\text{bytes} = \frac{\text{bits}}{8} and bits=8×bytes\text{bits} = 8 \times \text{bytes}. Confusing the two is easy: a 100 Mbps link moves 12.5 MB per second, not 100 MB/s.

Binary (1024) vs decimal (1000)

In binary (IEC), each step is 1024: 1 KiB = 1024 B, 1 MiB = 1024 KiB, 1 GiB = 1024 MiB. So 1 GiB = 102431024^3 = 1,073,741,824 bytes. In decimal (SI), each step is 1000: 1 KB = 1000 B, 1 MB = 1000 KB, 1 GB = 1000 MB, so 1 GB = 100031000^3 = 1,000,000,000 bytes. A drive sold as "1 TB" holds 101210^{12} bytes; in Windows (binary) that shows as about 931 GiB. The calculator’s base toggle lets you match whichever convention you’re working with.

Common file and storage sizes

In the Information Hub under the calculator you’ll find a Common media and storage sizes table, floppy, CD, DVD, Blu-ray, typical MP3 and video, as a ballpark. Use the tool to convert any of those into bits, bytes, or another unit. For email, 10–25 MB is a safe attachment limit on most providers; for anything bigger, share a link from cloud storage instead.

File size limits (file systems)

Maximum file size depends on the file system. FAT32 limits a single file to 23212^{32}-1 bytes (4 GB minus 1 byte). NTFS and exFAT support far larger files, up to 16 EB in current specs. When moving or creating very large files (e.g. video, disk images), make sure the destination volume uses a file system that supports that size.

File Size Calculator FAQ

Why does my 1 TB drive show only about 931 GB in Windows?

Storage makers use decimal units: 1 TB = 1,000,000,000,000 bytes. Windows uses binary: 1 TiB = 1,099,511,627,776 bytes, and it labels it "TB" in the UI. So a drive sold as 1 TB (10¹² bytes) is 10¹² ÷ 1024³ ≈ 931 GiB. You didn’t lose space, the same bytes are there; the units and base (1000 vs 1024) differ.

What is the difference between KB and KiB?

KB (kilobyte) is decimal: 1 KB = 1,000 bytes. KiB (kibibyte) is binary: 1 KiB = 1,024 bytes. Same idea for MB/MiB, GB/GiB, and so on. Windows and many apps still say "KB" and "MB" but use 1024 under the hood, which is why the IEC invented KiB, MiB, GiB, to avoid mixing decimal names with binary math.

How do I convert file size from bits to bytes?

One byte equals 8 bits. Divide bits by 8 to get bytes (e.g. 1,000 bits = 125 bytes). Multiply bytes by 8 to get bits. The tool above shows the same size in every unit so you can read off the value you need.

What file size can I safely send by email?

Most providers cap attachments at 25–50 MB; 5–10 MB is a safe bet so the message doesn’t bounce or get stripped. For anything larger, use a link from a file-sharing or cloud service instead of attaching.

Why 1024 instead of 1000 for "kilo" in file sizes?

Computers work in powers of two. 1024 is 2¹⁰, so it fits how memory and addressing work. Early on, "kilo" was used for 1024 in computing. Later, standards bodies said "kilo" should mean 1000 (SI) and introduced "kibi" (KiB) for 1024. That’s why you see both bases today.

What are typical file sizes for photos, video, and audio?

A 12 MP photo (JPG) is often 3–5 MB. A 3‑minute MP3 is roughly 3–5 MB; the same as uncompressed WAV is about 30 MB. SD video runs about 1 GB per hour; 1080p often 4–8 GB per hour. Exact sizes depend on resolution, codec, and quality settings.

How do I reduce file size?

For documents and spreadsheets, avoid embedding huge images; compress images before inserting. For media, use compressed formats (e.g. JPG, MP3, H.264) and lower bitrates or resolution. Archivers (ZIP, 7z) shrink text and some binaries; they rarely shrink already-compressed media.

Mathematical Reference Note

Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.

Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.

Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.

© 2026 CalcRegistry Reference Last System Check: May 2026Free Online Utility Tools