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.
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
| Unit | Value |
|---|---|
| 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.
Read the full explanation
Frequently asked questions
Related tools
Number Base Converter (Binary, Octal, Decimal, Hex)
Convert numbers between binary, octal, decimal and hexadecimal.
Development
Hex to Text Converter (UTF-8, ASCII)
Convert text to hexadecimal bytes and back, in the encoding you pick.
Development
Compress Image
Reduce a JPG or WebP file size with quality control; PNG is only re-encoded.
Image
Compress PDF
Reduce the size of a PDF in your browser and see before and after.
Compress Video Online
Shrink a video's file size by choosing resolution and quality.
Video Editing