Bytes Converter (KB, MB, GB, TB)
Convert between bytes, KB/MB/GB/TB and KiB/MiB/GiB/TiB — both decimal (base 10) and binary (base 2).
Loading Bytes Converter (KB, MB, GB, TB)… If nothing happens, please enable JavaScript.
Frequently asked questions
Is any data sent to a server when I use this tool?
Why is 1 KB sometimes 1,000 bytes and sometimes 1,024 bytes?
Why does my 1 TB drive only show around 931 GB in Windows?
What are the IEC binary prefixes and why were they introduced?
Does the difference between KB and KiB really matter?
What is the history of the byte as a unit?
Why are network speeds in bits while file sizes are in bytes?
How does this tool compare to a search engine byte converter?
Which byte conversion values are worth knowing by heart?
What is a nibble, and are there units smaller than a byte?
About Bytes Converter (KB, MB, GB, TB)
Data storage and network capacity are measured using two parallel unit systems that share almost identical names, causing persistent confusion for consumers and professionals alike. The decimal system, defined by the International System of Units (SI), uses powers of 1,000: one kilobyte (KB) is exactly 1,000 bytes, one megabyte (MB) is 1,000,000 bytes, and so on. Hard drive and SSD manufacturers, as well as network speed specifications, use these SI units because they make their products appear larger and faster in advertising. The binary system, formally defined by the International Electrotechnical Commission (IEC) in 1998, uses powers of 1,024: one kibibyte (KiB) is exactly 1,024 bytes, one mebibyte (MiB) is 1,048,576 bytes. Operating systems, RAM modules, and file system tools traditionally report sizes in binary units — but many still label them with the ambiguous KB/MB/GB abbreviations, making it appear that your storage hardware is missing space.
The divergence between these two systems creates real-world confusion at every level. A 1 TB hard drive contains exactly 1,000,000,000,000 bytes by its manufacturer's specification. Windows reports available storage in binary gibibytes — 1,000,000,000,000 / 1,073,741,824 (which is 2^30) ≈ 931.32 GiB — but labels it as GB. This is why every consumer who has ever bought a storage device has wondered where the missing space went. Network speeds compound the confusion further: internet service providers advertise speeds in megabits per second (Mbps) using decimal, while file transfer software typically shows speeds in megabytes per second (MB/s), also often decimal, meaning a 100 Mbps connection transfers about 12.5 MB/s, not 100 MB/s.
This tool converts between both decimal SI units (KB, MB, GB, TB, PB) and binary IEC units (KiB, MiB, GiB, TiB, PiB) simultaneously. Enter any value in any field and every other unit updates instantly. Calculations use JavaScript BigInt for byte counts so values of any size remain exact with no floating-point rounding. All processing runs entirely in your browser — no data is uploaded.
A few important things to remember: the gap between SI and binary units grows with each prefix — KB vs KiB differ by about 2.4%, but TB vs TiB differ by about 9.9%, and PB vs PiB differ by about 12.6%. This means the larger the storage, the more misleading marketing figures become. The IEC prefixes (KiB, MiB, GiB) were specifically created in 1998 to end this ambiguity, but adoption has been slow outside technical writing. The Linux kernel, macOS (since macOS 10.6), and most scientific and engineering contexts now use the correct IEC prefixes, while Windows and many consumer applications continue to use SI abbreviations for binary quantities.
The 1024 vs 1000 War: How a Standards Fight Left Consumers Confused for Decades
The ambiguity between 1,000 and 1,024 bytes per kilobyte is one of the longest-running low-grade conflicts in the history of computing standards. It began innocently: in the 1960s, computer memory was sold in powers of two, and 1,024 bytes (2^10) was the smallest convenient power of two above one thousand. Engineers informally called this a 'kilobyte' by analogy with the SI kilo- prefix, even though SI kilo strictly meant 1,000. No standard body objected because the difference was small and computing was a niche field. As memory and storage grew through the 1980s and 1990s, the two definitions drifted further and further apart with each order of magnitude.
Hard drive manufacturers, meanwhile, had good commercial reasons to prefer the SI definition. A drive sold as 100 GB using the SI definition (100 × 10^9 = 100,000,000,000 bytes) would be labeled by an operating system as only about 93.1 GiB — a full 7% smaller. The practice was technically accurate under SI, but felt deceptive to consumers who saw their new drive appear smaller than advertised when they plugged it in. Class-action lawsuits were filed against hard drive manufacturers in the United States in the early 2000s. Western Digital settled a suit in 2006 for $1.4 million, agreeing to include clearer labeling, without admitting wrongdoing. Similar suits followed against Seagate and others.
The IEC's 1998 introduction of kibibyte, mebibyte, and gibibyte was intended to end the confusion definitively by giving the binary quantities their own unambiguous names. Adoption has been mixed. The Linux kernel, the GNU project, the International Bureau of Weights and Measures, and the IEEE all now use the IEC prefixes in formal contexts. macOS switched to SI decimal units in version 10.6 Snow Leopard in 2009, solving the apparent gap by reporting storage in decimal gigabytes to match manufacturer labeling. Windows continues to report in binary but label them as GB. The result is that a modern MacBook and a Windows PC connected to the same file server will report the same file's size with different numbers, despite reading the identical bytes.