File Size Converter
Convert between bytes, KB, MB, GB, TB and more — in binary (1024) and decimal (1000) standards
| Unit | Value |
|---|
Binary vs. Decimal — Two Ways to Count
Decimal (SI) — Storage Manufacturers
1 KB = 1,000 B
1 MB = 1,000,000 B
1 GB = 1,000,000,000 B
Powers of 10 (10³ per step)
Binary (IEC) — Operating Systems
1 KiB = 1,024 B
1 MiB = 1,048,576 B
1 GiB = 1,073,741,824 B
Powers of 2 (2¹⁰ per step)
Why your 1 TB drive shows 931 GB
The drive manufacturer counts 1 TB = 1,000,000,000,000 bytes. Windows reports in binary: 1,000,000,000,000 ÷ 1,073,741,824 = 931.32 GiB (shown as "GB"). No storage is missing — it's purely a counting difference.
Common File Size Reference
Real-world sizes| File Type | Typical Size | Notes |
|---|---|---|
| Plain text email | 5–20 KB | Without attachments |
| MS Word document (10 pages) | 50–200 KB | Text only, minimal formatting |
| JPEG photo (smartphone) | 2–6 MB | 12–48 MP, high quality |
| RAW photo (DSLR) | 20–50 MB | Uncompressed, 20–50 MP |
| MP3 song (3–4 min) | 3–8 MB | 128–320 kbps bitrate |
| FLAC song (lossless) | 25–50 MB | CD-quality, no compression loss |
| HD (1080p) movie | 4–8 GB | H.264/H.265, ~2 hours |
| 4K UHD movie | 50–100 GB | Blu-ray quality, HDR |
| DVD (single-layer) | 4.7 GB | Standard DVD-5 capacity |
| Blu-ray disc | 25–50 GB | Single/dual-layer |
| Mobile app install | 50–500 MB | Varies widely by app |
| AAA video game | 50–150 GB | Modern console/PC titles |
| Windows 11 ISO | ~5.1 GB | Installer image |
| Ubuntu Linux ISO | ~1.5 GB | Desktop edition |
How the Conversion Works
All values are first converted to bits (the smallest unit), then divided by the target unit's factor. This ensures precision across any combination of units.
Decimal (SI) Formulas
Binary (IEC) Formulas
Worked Example: Convert 1 GB to MB
Decimal: 1 GB = 1,000 MB (manufacturers, cloud storage)
Binary: 1 GiB = 1,024 MiB (OS memory addressing)
Mixed reality: A "1 GB" file on a decimal filesystem = 0.9313 GiB in binary = 953.67 MiB
What is a File Size Converter?
A file size converter is a tool that translates digital storage measurements from one unit to another — for example, converting gigabytes to megabytes, terabytes to gigabytes, or bytes to kilobytes. Every digital file occupies a specific amount of space, expressed in units built on the fundamental bit. File size converters are essential for comparing hard drive specs, estimating download times, managing cloud storage quotas, checking email attachment limits, and understanding operating system disk reports.
This converter supports two distinct standards — decimal (SI, powers of 1,000) and binary (IEC, powers of 1,024) — and shows all unit equivalents simultaneously for maximum convenience.
Binary vs. Decimal: Why Sizes Differ
The confusion between binary and decimal file sizes stems from two legitimate but incompatible counting systems. Computer engineers in the 1950s naturally used powers of 2 (binary), so 1 kilobyte meant 2¹⁰ = 1,024 bytes. Meanwhile, the International System of Units (SI) defines "kilo" as exactly 1,000. Storage manufacturers, following SI, label drives in powers of 1,000 to make their products appear larger.
The result: a "1 terabyte" hard drive actually stores 1,000,000,000,000 bytes by the manufacturer's count, but your operating system divides that by 1,073,741,824 (2³⁰) and reports 931.32 GiB — displayed as "931 GB" in Windows. No space is missing; the two systems simply count differently. In 1998, the IEC introduced unambiguous binary prefixes — kibibyte (KiB), mebibyte (MiB), gibibyte (GiB) — to eliminate this ambiguity, though everyday usage still widely uses KB/MB/GB for both.
Common File Size Units Explained
- Bit (b): The smallest unit of digital information — a single 0 or 1. Network speeds are measured in bits per second (Mbps, Gbps).
- Byte (B): 8 bits. The basic unit for file and storage sizes. A single ASCII character is 1 byte; a UTF-8 character can be 1–4 bytes.
- Kilobyte (KB) / Kibibyte (KiB): 1,000 or 1,024 bytes. Typical for small text files, emails, and images.
- Megabyte (MB) / Mebibyte (MiB): ~1 million bytes. Standard for photos, songs, and documents.
- Gigabyte (GB) / Gibibyte (GiB): ~1 billion bytes. The everyday unit for apps, movies, and USB drives.
- Terabyte (TB) / Tebibyte (TiB): ~1 trillion bytes. Common for hard drives, NAS devices, and cloud storage plans.
- Petabyte (PB) / Pebibyte (PiB): ~1 quadrillion bytes. Data-center and cloud provider scale. Facebook stores hundreds of petabytes of photos.
- Exabyte (EB) / Exbibyte (EiB): ~1 quintillion bytes. Internet traffic and national data infrastructure scale. The entire internet processes roughly 5 exabytes of data per day.
Why Storage Manufacturers Use Decimal but OS Uses Binary
Hard drive and SSD manufacturers advertise capacity in SI decimal units (GB = 10⁹ bytes) because it allows them to show larger numbers — 1,000,000,000 bytes sounds bigger than 931 GiB. This is legal and standardised under SI definitions.
Operating systems (Windows, older macOS, Linux) traditionally reported sizes in binary units because CPU addressing, RAM allocation, and filesystem block sizes are all power-of-2 based. Modern macOS (since 10.6 Snow Leopard, 2009) switched to decimal reporting, so a 1 TB drive shows as ~1 TB in macOS but ~931 GB in Windows — even though the physical capacity is identical.
File Size Tips for Developers and Everyday Users
For everyday users:
- When comparing storage devices, use the manufacturer's GB (decimal) to compare like-for-like.
- When Windows shows "931 GB free" on a "1 TB" drive, you have not lost storage — Windows is simply reporting in GiB.
- To estimate download time: divide the file size in megabytes by your speed in megabytes/second (remember: 100 Mbps ÷ 8 = 12.5 MB/s).
For developers and sysadmins:
- Always specify whether values are decimal or binary in documentation and APIs — use "MiB" and "GiB" when you mean binary to avoid ambiguity.
- In programming, use
1 << 20for 1 MiB (1,048,576) to avoid floating-point errors. - Cloud providers (AWS, GCP, Azure) typically use decimal GB/TB for billing — confirm before estimating costs.
- Linux
dfandducommands report in 1K blocks by default; use-hfor human-readable binary, or--sifor decimal.
Frequently Asked Questions
Why does my 1 TB drive show only 931 GB?
What is the difference between a bit and a byte?
What is the difference between MB and MiB?
How many MB is 1 GB?
- Decimal (SI): 1 GB = exactly 1,000 MB — used by hard drive manufacturers, cloud storage providers, and internet data plans.
- Binary (IEC): 1 GiB = exactly 1,024 MiB — used in OS memory addressing and traditional filesystem reporting.
For most everyday purposes (storage, data plans), use 1 GB = 1,000 MB. For OS-level or programming contexts, 1 GiB = 1,024 MiB.
Why do internet speeds use bits while storage uses bytes?
What is a petabyte? How big is it?
- Google processes approximately 20 petabytes of data per day.
- The US Library of Congress print collection ≈ 10 TB → 1 PB could hold ~100 Libraries of Congress.
- All human speech ever recorded is estimated at ~5 EB (5,000 PB).
Should I use binary or decimal for file size conversion?
Use binary (IEC) when: reading file sizes reported by Windows (which calls GiB "GB"), working with RAM specifications, programming in low-level languages, or comparing OS-reported disk usage to manufacturer specs.
When precision matters — in technical documentation, contracts, or software — always state clearly whether you mean MB (decimal, 10⁶ bytes) or MiB (binary, 2²⁰ bytes).