Convert between bytes, KB, MB, GB, TB, and PB
Convert between data storage units: Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, and Petabytes. Supports both decimal (SI) and binary (IEC) standards. Runs entirely in your browser.
Data size conversion is essential but surprisingly confusing due to the binary/decimal ambiguity. Historically, 1 KB = 1,024 bytes (binary, using powers of 2). But storage manufacturers use 1 KB = 1,000 bytes (decimal, SI standard). This is why a '1 TB' hard drive shows as ~931 GB in your operating system โ both are correct, using different bases. The IEC standardized binary units in 1998: KiB (kibibyte, 1,024), MiB (mebibyte, 1,048,576), etc. but adoption is slow. This converter handles both systems, showing conversions in bytes, KB/KiB, MB/MiB, GB/GiB, TB/TiB, and PB/PiB. Essential for network bandwidth calculations, storage planning, file size estimation, and understanding why your storage devices have less space than advertised.
Drive manufacturers use decimal: 1 TB = 1,000,000,000,000 bytes. Operating systems use binary: 1 TiB = 1,099,511,627,776 bytes. Dividing the drive's actual bytes by the binary GiB value gives ~931 GiB, which the OS shows as 'GB'.
MB (megabyte) is ambiguous โ it could mean 1,000,000 (decimal) or 1,048,576 (binary) bytes. MiB (mebibyte) explicitly means 1,048,576 bytes (binary). IEC introduced MiB to resolve this confusion, but everyday usage still defaults to MB.
Internet speeds are in bits per second (Mbps). File sizes are in bytes (MB). Divide speed by 8 to get download rate: 100 Mbps รท 8 = 12.5 MB/s maximum download speed. ISPs use bits because the numbers look bigger.
At average smartphone photo size (~4MB), about 250 photos per GB. RAW photos (~25MB) fit about 40 per GB. Videos vary widely โ 1 minute of 4K is about 375MB. These are estimates; compression affects actual sizes.
Petabyte (PB, 1000 TB), exabyte (EB, 1000 PB), zettabyte (ZB, 1000 EB), yottabyte (YB, 1000 ZB). Global internet traffic in 2025 is estimated at several zettabytes per year. Consumer storage rarely exceeds petabytes.