File Size Converter
Convert file sizes — bytes / KB / MB / GB / TB / PB — in both decimal (1000) and binary (1024) systems.
File Size Converter
How to use the file size converter
Enter the value
Type any number, decimals welcome (e.g. 4.7). The result panels update as you type.
Pick the source unit
Choose from the decimal (SI) family or the binary (IEC) family. If the number came from Windows, choose the binary unit: a file Windows calls 4.38 GB is 4.38 GiB. If it came from a box, a spec sheet, macOS or an iPhone, choose the decimal one.
Compare side-by-side
The two result cards show the value in every unit of each system, and the panel below shows what Windows, macOS and Linux call that size. The gap widens with the unit: a binary reading comes out 6.9% lower at the GB scale and 9.1% lower at the TB scale (1 TB = 0.9095 TiB), which is why a new 1 TB drive shows as 931 GB in Windows.
Try the presets
The pills under the input cover everyday sizes: CD, DVD, Blu-ray and common drives. Two of them show how muddled labels get. An 80-minute CD labelled 700 MB holds 737.28 MB of data, because the label is really 703 MiB. A "1.44 MB" floppy holds 1,440 KiB, so its "MB" is 1,000 × 1,024 bytes, neither unit.
KB vs KiB — why your 1 TB drive shows as 931 GB
File sizes are stuck between two measurement systems. The decimal system uses steps of 1,000: kilo, mega, giga, the SI prefixes printed on a drive box. The binary system uses steps of 1,024: kibi, mebi, gibi. A binary reading comes out 6.9% lower at the gigabyte scale and 9.1% lower at the terabyte scale, which is why a "1 TB drive" appears in Windows as 931 GB. The bytes are the same. Only the divisor differs, and Windows then writes GB where the standards would write GiB.
Where the 1024 came from
Computers are binary. Memory addresses, block sizes and page sizes are all powers of 2, and 1,024 (2^10) is close enough to 1,000 that early computing borrowed "kilo" for it. Standards bodies later separated the two. The International Electrotechnical Commission approved kibi, mebi and gibi in December 1998, and they now sit in ISO/IEC 80000-13. The SI Brochure is blunt about the other half: SI prefixes refer strictly to powers of 10 and should not be used for powers of 2. Note the case too: the SI symbol for kilo is a lowercase k, so 1,000 bytes is strictly kB, and KiB is the binary one.
Which system does each thing use
Decimal (1000): drive and memory-card labels, internet bandwidth (Mbps, Gbps), macOS and iOS storage figures. Apple says only OS X Leopard and earlier, and iOS 10 and earlier, reported capacity in binary. Binary (1024): RAM ("8 GB" of RAM is 8 GiB), Windows File Explorer, and Linux du, df and ls -h output. GNU tools write single letters (932G), and --si switches them to decimal. Check the small print: Google Cloud Storage bills in binary gigabytes, 2^30 bytes each, even where it writes GB. The Windows line in the panel above applies Explorer's divide-by-1,024 rule to three digits; we have not checked it against every Windows build. So a freshly installed Windows reads a drive of 1,000,000,000,000 bytes as 931 GB (1,000,000,000,000 ÷ 1,073,741,824 = 931.32). A real drive holds slightly more than its label, and formatting and the system take some back, so the free space you see will be lower again.
Network speeds are bits, not bytes
Internet bandwidth uses bits per second (lowercase b), not bytes per second (uppercase B). So "100 Mbps" is 100,000,000 bits/second = 12.5 MB/s of usable file-transfer speed (8 bits per byte, with some overhead). A 1 Gbps line is theoretically 125 MB/s; protocol framing takes 5.07% of that (a full TCP/IPv4 segment carries 1,460 payload bytes per 1,538 bytes on the wire), leaving about 118.7 MB/s before any congestion, Wi-Fi loss or server-side limit. To compare your line with a national figure, use Ookla's Speedtest Global Index, which publishes monthly medians, not averages. Quoting one here would only go stale.
A 1 TB drive reads 931 GB, a 700 MB CD holds 737, and a 1.44 MB floppy is neither
The IEC approved the binary prefixes (kibi, mebi, gibi) in December 1998 to end the "is 1 KB 1,000 or 1,024?" ambiguity. Microsoft's Raymond Chen explained in 2009 why Explorer still writes KB: "the entire computing industry" had ignored the guidance.
A drive sold as 1 TB is counted in trillions of bytes. Windows divides by 1,073,741,824 (2^30) and shows 931 GB. The same count on a Mac reads 1 TB.
RAM is sized in binary (a "16 GB" stick is 16 GiB, 17.18 billion bytes). Drives are sized in decimal (16 TB is 16 trillion bytes, not 17.6 trillion).
A CD labelled 700 MB holds 703.1 MiB of data in 80 minutes: 360,000 sectors of 2,048 bytes. That label uses the binary meaning, the opposite of the DVD beside it, whose 4.7 GB is decimal.
The "1.44 MB" floppy is 1,440 KiB. Its MB is 1,000 × 1,024 bytes, a unit neither the SI nor the IEC recognises. In real units it holds 1.47 MB or 1.41 MiB.
Yotta (10^24) stopped being the top of the SI ladder in November 2022, when the 27th CGPM added ronna (10^27) and quetta (10^30), citing data science's coming need to express digital information beyond 10^24.
Frequently asked questions
Method & sources
How it computes
Decimal (SI) units are powers of 1000 and binary (IEC) units powers of 1024: 1 kB = 10^3 B, 1 KiB = 2^10 B. FileSizeKernel holds the value as an exact BigInt fraction, so every conversion is exact at any size. It also shows what each system calls the size: Windows File Explorer (÷1024, written GB, three digits cut off), macOS and iOS (base 10), GNU ls -h (÷1024, rounded up).
What this tool implements
- IEC prefixes for binary multiples (kibi, mebi, gibi …), approved December 1998 and tabulated by NIST: 1 KiB = 2^10 B, 1 MiB = 1 048 576 B; now in ISO/IEC 80000-13 (named as such by GNU coreutils; the ISO page itself refuses automated fetches).
- SI decimal prefixes per the BIPM, extended to ronna (10^27) and quetta (10^30) by the 27th CGPM in 2022. The SI Brochure says SI prefixes refer strictly to powers of 10. The symbol for kilo is lowercase k.
- A 10^12-byte drive therefore displays as 931.32 GiB on a system that divides by 2^30.
- Corrected 2026-11-02: cloud storage pricing was listed as decimal, naming AWS S3 and Google Cloud. Google Cloud Storage bills in binary gigabytes (2^30 bytes); the claim is gone and the page says to check. "File managers across most platforms" as binary is gone, and so is the column heading that put macOS under binary: Apple says only OS X Leopard and earlier, and iOS 10 and earlier, reported binary.
- Corrected 2026-11-02: the 700 MB CD preset used decimal megabytes. An 80-minute CD holds 360,000 sectors of 2,048 bytes (ECMA-130), 737,280,000 bytes, so the label is 703 MiB; the preset is now 737.28 MB. The gap between readings was given as both 9% and 10% at TB; it is 9.1% lower when read in binary.
- Corrected 2026-11-02: the page claimed BigInt exactness to about 9 PB while multiplying through a double, and threw on a value too large for a double. It is now exact at any size. The everyday comparison was nearest by difference, so most sizes matched the wrong entry, and its figures were unsourced (a 500 KB web page, a 5 MB MP3, 80-character SMS); it is now nearest by ratio over figures that are definitions or arithmetic.
Sources
- National Institute of Standards and Technology. Prefixes for binary multiples. https://physics.nist.gov/cuu/Units/binary.html
- Bureau International des Poids et Mesures. The International System of Units (SI Brochure), 9th edition, 2019, section 3. https://www.bipm.org/documents/20126/41483022/SI-Brochure-9-EN.pdf
- Bureau International des Poids et Mesures. SI prefixes. https://www.bipm.org/en/measurement-units/si-prefixes
- 27th CGPM (2022), Resolution 3, on the extension of the range of SI prefixes. https://www.bipm.org/en/committees/cg/cgpm/27-2022/resolution-3
- Apple Support. How storage capacity is measured on Apple devices. https://support.apple.com/en-us/102119
- Chen, R. Why does Explorer use the term KB instead of KiB? The Old New Thing, Microsoft, 2009. https://devblogs.microsoft.com/oldnewthing/20090611-00/?p=17933
- Microsoft Learn. StrFormatByteSizeEx function: 2147483647 truncated is 1.99 GB. https://learn.microsoft.com/en-us/windows/win32/api/shlwapi/nf-sh…
- GNU Coreutils manual. Block size: -h uses powers of 1024, --si powers of 1000, fractional counts rounded up. https://www.gnu.org/software/coreutils/manual/html_node/Block-siz…
What can make this go out of date
- None at runtime.
Abridged — the full review record for this tool runs longer than the list above.
Pick up where you left off
Stored only in this browser — never sent to our servers.