Converters
Data Size Converter
Convert bits, bytes, kB, MB, GB, KiB, MiB, GiB, and more.
About This Tool
Convert digital data and storage sizes between bits, bytes, decimal SI units, and binary IEC units without uploading a file. The converter includes kB, MB, GB, and TB based on powers of 1000, plus KiB, MiB, GiB, and TiB based on powers of 1024. Keeping those systems separate is useful when comparing file sizes, storage specifications, operating-system displays, transfer calculations, and developer output.
How To Use It
- Enter a non-negative data size value.
- Choose the unit the value currently uses, paying attention to decimal units such as MB versus binary units such as MiB.
- Choose the unit you want to convert to.
- Use Swap to reverse the conversion, and use the comparison table to see the same value across all supported units.
Examples
Bytes to bits
Enter 1 byte and convert to bits to get exactly 8 bits, because a byte contains eight bits.
Megabytes to bytes
Enter 5 MB and convert to bytes to get 5,000,000 bytes. MB is treated as the decimal SI unit: 1 MB = 1,000,000 bytes.
Mebibytes to bytes
Enter 5 MiB and convert to bytes to get 5,242,880 bytes. MiB is the binary IEC unit: 1 MiB = 1,048,576 bytes.
GB compared with GiB
Enter 1 GB and convert to GiB to get about 0.9313225746 GiB. A decimal gigabyte and a binary gibibyte are not the same size.
Useful Notes
Bits and bytes
A bit is a single binary digit. A byte is exactly 8 bits. Network speeds are often expressed in bits per second, while file and storage sizes are commonly expressed in bytes and larger byte-based units.
Decimal units: kB, MB, GB, and TB
The SI-style decimal units use powers of 1000: 1 kB = 1,000 bytes, 1 MB = 1,000,000 bytes, 1 GB = 1,000,000,000 bytes, and 1 TB = 1,000,000,000,000 bytes. Storage manufacturers commonly use these decimal definitions.
Binary units: KiB, MiB, GiB, and TiB
IEC binary units use powers of 1024: 1 KiB = 1,024 bytes, 1 MiB = 1,048,576 bytes, 1 GiB = 1,073,741,824 bytes, and 1 TiB = 1,099,511,627,776 bytes.
Why MB and MiB differ
MB and MiB represent different quantities. One MiB equals 1.048576 MB, while one MB is about 0.9536743164 MiB. Using the explicit IEC names avoids the ambiguity that can occur when software informally labels binary quantities as KB, MB, or GB.
Data size is not data rate
This tool converts quantities of data, not transfer speeds or bandwidth. A value such as 100 MB is a data size; 100 Mb/s is a rate that also includes a time dimension. Use time and rate calculations separately when estimating download or upload duration.
FAQ
How many bits are in one byte?
One byte contains exactly 8 bits.
Is 1 MB 1000 KB or 1024 KB?
Using SI decimal prefixes, 1 MB equals 1000 kB. Binary multiples use different names: 1 MiB equals 1024 KiB. This converter keeps the decimal and binary systems explicit.
What is the difference between GB and GiB?
One GB is 1,000,000,000 bytes, while one GiB is 1,073,741,824 bytes. Therefore 1 GiB equals about 1.073741824 GB.
Why can a drive appear smaller in some software?
One common reason is that storage may be marketed using decimal bytes while software may display a binary-sized quantity, sometimes with an ambiguous GB label. Formatting, partitions, and system-reserved space can also affect displayed usable capacity.
Does this tool upload my files?
No file is needed. You enter only a numeric size and select units; the conversion is performed locally in your browser.
Related Tools
Base64 Encode / Decode
PopularConvert plain text and Base64 in either direction.
JSON Formatter & Validator
PopularValidate JSON, pretty-print it, minify it, and inspect JSON paths.
Basic Calculator
PopularA simple arithmetic calculator for quick results.
Speed Converter
Convert km/h, mph, m/s, ft/s, and knots instantly.