Skip to content
Processing locally — files never leave your device

Data Storage Converter

Convert between bytes, kilobytes, megabytes, gigabytes, terabytes, and bits — including both decimal (KB = 1000) and binary (KiB = 1024) conventions.

Bloggers — embed this widget for free

Add this tool to your own site with one line of HTML. Free forever — just keep the small credit link.

How to use Data Storage

  1. Pick your convention first — decimal (1 KB = 1,000 bytes) or binary (1 KiB = 1,024 bytes) — because the answer changes depending on which one you choose.
  2. Enter a quantity in the bit, byte, KB/KiB, MB/MiB, GB/GiB, TB/TiB, or PB/PiB row.
  3. Each remaining row rebuilds from your number using the prefix base set by the toggle.
  4. For network math, switch to decimal and watch the factor of 8: a file in bytes divided by a link speed in bits will be wrong by 8x unless you convert one to match the other.

Data storage converter: bits, bytes, and the KB vs KiB problem

This converter handles both conventions that storage uses — decimal (powers of 1,000) and binary (powers of 1,024) — across bits, bytes, kilo, mega, giga, tera, and petabytes. The toggle above switches the whole table between them. Below is exactly how the two systems differ and when each one is correct.

The base unit: a byte is 8 bits

Everything here is built on the byte, which is 8 bits. A bit is a single 1 or 0. Because marketing materials and engineers mix bits and bytes freely, the single most common error in storage math is forgetting the factor of 8. Speeds are bits; sizes are bytes.

Decimal prefixes (SI) — what storage is sold in

  • 1 KB = 1,000 bytes
  • 1 MB = 1,000 KB = 1,000,000 bytes
  • 1 GB = 1,000 MB = 1,000,000,000 bytes
  • 1 TB = 1,000 GB
  • 1 PB = 1,000 TB

Binary prefixes (IEC) — what RAM and Windows use

  • 1 KiB = 1,024 bytes
  • 1 MiB = 1,024 KiB = 1,048,576 bytes
  • 1 GiB = 1,024 MiB = 1,073,741,824 bytes
  • 1 TiB = 1,024 GiB
  • 1 PiB = 1,024 TiB

The mismatch grows at every level. A "1 GB" file counted in GiB is only 0.931 GiB, which is why a 256 GB phone shows roughly 238 GiB of usable space before the operating system is even installed.

Practical conversions you will actually do

  • 4K video: about 0.375 GB (375 MB) per minute at 50 Mbps — useful for sizing storage cards.
  • One hour of 320 kbps audio: about 144 MB (3,600 s × 320,000 ÷ 8 ÷ 1,000,000).
  • A RAW photo: typically 25–50 MB; a JPEG of the same image, 5–12 MB.
  • A database row of plain text: usually a few hundred bytes to a few KB.

Estimating bandwidth and transfer time

To size a transfer, convert the file to bits and divide by the link speed in bits per second. Real-world throughput is usually 60–80% of the rated speed once overhead and congestion are accounted for, so add a margin to any estimate you make from the raw maximum.

Related converters

  • Time Converter — turn a transfer time in seconds into minutes or hours.
  • Base64 Encoder — note Base64 inflates data by about 33% when encoding binary as text.
  • Image Compressor — shrink files before you worry about storage limits.

Frequently asked questions

KB vs KiB — what is the difference?
A kilobyte (KB) is 1,000 bytes; a kibibyte (KiB) is 1,024 bytes. The SI/decimal prefixes (KB, MB, GB, TB) are powers of 1,000. The IEC/binary prefixes (KiB, MiB, GiB, TiB) are powers of 1,024. The gap widens at each step: KB and KiB differ by 2.4%, but TB and TiB differ by about 10%.
Why does my 1 TB drive show as 931 GB?
Manufacturers sell drives in decimal units, so 1 TB = 1,000,000,000,000 bytes. Windows reports capacity in binary but labels it "GB", so it divides by 1,073,741,824 and shows 931. The bytes are all there — only the unit convention differs.
Bits or bytes for internet speed?
Internet and network speeds are quoted in bits per second (Mbps, Gbps). File sizes are in bytes (MB, GB). There are 8 bits in a byte, so a 100 Mbps connection downloads at most about 12.5 MB/s. Divide the bit rate by 8 to estimate transfer time.
How do I work out a download time?
Convert the file to bits, then divide by your connection speed in bits per second. A 5 GB file is 40 Gb; on a 100 Mbps line that is 40,000 ÷ 100 = 400 seconds, or about 6.7 minutes at the theoretical maximum.
What is a nibble?
A nibble is 4 bits — half a byte. It maps neatly to one hexadecimal digit, which is why a byte is written as two hex characters (00 to FF).
How big is a petabyte?
A petabyte (PB) is 1,000 TB, or 1,000,000 GB in decimal terms. A pebibyte (PiB) is 1,024 TiB. Large data centers and cloud storage tiers are commonly measured in petabytes.
Which convention should I use?
Use decimal (KB, MB, GB) for storage marketing, file sizes shown by macOS and most Linux tools, and network math. Use binary (KiB, MiB, GiB) for RAM, Windows file sizes, and anywhere precision against powers of two matters.

More tools you might find useful in the same flow.

Built by Muhammad Tahir · About