About this tool
Bytes to Human-Readable Size converts in both directions. In the top box, enter a whole number of bytes, for example 1572864, and the tool shows it twice: in binary units (B, KiB, MiB, GiB, TiB, PiB, each 1,024 times the last) and in decimal units (B, KB, MB, GB, TB, PB, each 1,000 times the last). Values are rounded to two decimals, so 1572864 shows as 1.5 MiB and 1.57 MB. Commas, spaces and underscores in the number are ignored, so 1,572,864 works, but decimals, signs and letters are reported as invalid.
In the second box, type a size such as 1.5 GB, 700 MiB or .5 TB and the tool returns the exact byte count, rounded to a whole byte and grouped with commas. Units are case-insensitive, a space before the unit is optional, and a number with no unit is read as bytes. Accepted units are B, KB, MB, GB, TB, PB and KiB, MiB, GiB, TiB, PiB. Here KB is always 1,000 bytes and KiB always 1,024, and shortcuts such as K or M are not recognised. Use a dot for decimals; 1,5 GB is rejected.
The two sets of figures explain why a drive sold as 1 TB shows about 931 GiB in an operating system that counts in binary. Numbers are held as ordinary JavaScript numbers, so counts above about 9 quadrillion bytes (2^53) lose exact precision.