ToolBark
Converters

Data Storage Converter

Instantly convert between bits, bytes, KB, MB, GB, TB, and PB

Input

Converted Values

bit
8,589,934,592
B
1,073,741,824
KB
1,048,576
MB
1,024
GB
1
TB
0.0009765625
PB
0.00000095367431640625

Binary Reference (1024-based)

UnitAbbreviationEqual to
Bitbit1 bit
ByteB8 bits
KilobyteKB1,024 bytes (2¹⁰)
MegabyteMB1,024 KB (2²⁰)
GigabyteGB1,024 MB (2³⁰)
TerabyteTB1,024 GB (2⁴⁰)
PetabytePB1,024 TB (2⁵⁰)
About

Convert data storage units instantly with our free online converter. Whether you need to convert gigabytes to megabytes, kilobytes to bytes, or terabytes to gigabytes, this tool handles it all using accurate binary (base-1024) math. Supports bits, bytes, KB, MB, GB, TB, and PB — perfect for developers, system admins, and anyone comparing file sizes or storage specs.

FAQ
Does this converter use binary (1024) or decimal (1000) units?+

This converter uses binary (base-1024) units, which is the standard used by operating systems. So 1 KB = 1,024 bytes, 1 MB = 1,024 KB, and so on. These are sometimes called kibibytes (KiB), mebibytes (MiB), etc. in strict SI terminology.

Can I convert fractional values like 1.5 GB?+

Yes. The converter accepts decimal inputs such as 1.5, 0.25, or 512.75. It uses exact rational arithmetic internally so results are precise with no floating-point rounding errors.

How many bits are in a gigabyte?+

1 gigabyte equals 8,589,934,592 bits (1 GB = 1,024 MB = 1,048,576 KB = 1,073,741,824 bytes = 8,589,934,592 bits).

What is the difference between a megabyte and a megabit?+

A megabyte (MB) contains 8 megabits (Mb). Internet speeds are typically advertised in megabits per second (Mbps), while file sizes are measured in megabytes (MB). To convert Mbps to MB/s, divide by 8.

Related tools