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.
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.
1 GiB expressed as:
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.
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
Binary (1024) vs decimal (1000)
Why your "TB" drive looks smaller
IEC vs SI prefixes
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
- 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 0243 ≈ 1 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
What this tool does
Bits vs bytes
Binary (1024) vs decimal (1000)
Common file and storage sizes
File size limits (file systems)
File Size Calculator FAQ
Why does my 1 TB drive show only about 931 GB in Windows?
What is the difference between KB and KiB?
How do I convert file size from bits to bytes?
What file size can I safely send by email?
Why 1024 instead of 1000 for "kilo" in file sizes?
What are typical file sizes for photos, video, and audio?
How do I reduce file size?
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.