Kastavo

Data Size Converter

Convert data sizes between the bit, the byte, the decimal units (kB, MB, GB, up to QB) and the binary ones (KiB, MiB, GiB, up to YiB). Type a value, pick the unit you start from and the one you want, and see the result with every digit exact, and the same value in the other units right below. The math is exact, with no hidden rounding, and it runs in your browser, sending nothing.

931.322574615478515625 GiB

Value read: 1 TB

How to use it: type the value, pick the unit you start from and the one you want, and use the swap button to reverse the two. The copy button puts the result on the clipboard.

The same value in every unit

Every row is computed exactly. The ≈ sign marks a rounded value, and values with more than 30 digits appear in scientific notation. The row of the unit you chose is highlighted.
UnitValue
Bit (bit)8,000,000,000,000 bit
Byte (B)1,000,000,000,000 B
Kilobyte (kB)1,000,000,000 kB
Megabyte (MB)1,000,000 MB
Gigabyte (GB)1,000 GB
Terabyte (TB)1 TB
Kibibyte (KiB)976,562,500 KiB
Mebibyte (MiB)953,674.31640625 MiB
Gibibyte (GiB)931.322574615478515625 GiB
Tebibyte (TiB)0.9094947017729282379150390625 TiB

Not sure? Turn your internet off and try — it still works.

How it works

There are two ways to count: in the SI (decimal), 1 kB is 1,000 bytes and 1 GB is 1,000,000,000; in the IEC (binary), 1 KiB is 1,024 bytes and 1 GiB is 1,073,741,824. A byte has 8 bits. The math uses large integers (BigInt), with no floating point: every conversion between these units has an exact result. When it goes past 40 significant digits, the page rounds it, marks it with ≈ and keeps the exact digits under 'Show all digits'. In English the dot is the decimal mark and the comma separates thousands; Portuguese and Spanish do the opposite. Sources: BIPM (the SI prefixes, with ronna and quetta in 2022) and IEC (the binary prefixes); the details are in the article.

Frequently asked questions

Related tools

This website uses cookies

We use cookies to improve your experience and understand how the site is used. You can change this choice anytime in Cookie Preferences. See our Privacy Policy.