Developer tools
Data size converter
Type a value in any unit and the rest update instantly, with a decimal (1000) or binary (1024) base. Everything runs in your browser - nothing is uploaded.
Each step is 1000 bytes.
How it works
Type a value in any unit - bytes, KB, MB, GB, TB, or PB - and the rest update instantly. The catch with data sizes is that there are two common definitions: the decimal system, where each step is 1000 (1 KB = 1000 bytes), and the binary system, where each step is 1024 (1 KiB = 1024 bytes). The toggle switches between them so the numbers match whichever your operating system, drive maker, or network tool uses.
Drive manufacturers and network speeds use the decimal 1000-based units, while many operating systems report storage using the binary 1024-based units, which is why a 1 TB disk can look smaller once installed. This tool keeps the raw byte count fixed when you switch base, so you can see exactly how the same amount of data is labelled either way. Everything runs in your browser, with nothing uploaded.
Example. In decimal, 1 GB is 1000 MB, 1,000,000 KB, and 1,000,000,000 bytes. Switch to binary and that same billion bytes reads as about 0.931 GB, since each step divides by 1024 instead of 1000.
FAQ
What is the difference between KB and KiB?
KB in the decimal system is 1000 bytes; KiB in the binary system is 1024 bytes. The same pattern continues: MB is 1,000,000 bytes while MiB is 1,048,576. The gap grows at every step, reaching roughly 10 percent by the terabyte, which is why decimal and binary figures for the same data differ.
Why does my hard drive show less space than advertised?
Drive makers label capacity in decimal units (1 TB = 1,000,000,000,000 bytes), but many operating systems display it in binary units. Dividing by 1024 at each step instead of 1000 makes the same drive report about 931 GB, even though no space is actually missing.
How many bytes are in a megabyte?
It depends on the base. A decimal megabyte (MB) is 1,000,000 bytes. A binary megabyte (MiB) is 1,048,576 bytes, which is 1024 times 1024. Use the toggle to convert with whichever definition you need.
Is anything uploaded?
No. The conversion is plain arithmetic that runs entirely in your browser. Nothing you type is sent to a server, logged, or stored.