Free data tools · Know your units

Data Size Converter

One size, both systems. Convert bits and bytes into decimal kB, MB, GB, TB and PB, alongside binary KiB, MiB, GiB, TiB and PiB. Keep large numbers exact and see what each unit means.

01 / Enter your size

Use a dot for decimals, with no commas or unit suffix. Zero is valid. Maximum 128 characters after trimming spaces.

kB = 1000 B · KiB = 1024 B · B = 8 bits

Show up to 0–20 decimal places. Exact values always keep every digit.

Try an example when the input is empty:

Your values are calculated on your device. This tool does not upload or save your inputs. Refreshing or switching languages clears them. The site uses Google Analytics for page visits.

02 / Compare every unit

Enter a size, choose its unit, then convert.

How do I convert a data size?

  1. Enter a nonnegative decimal number without a unit suffix.
  2. Choose the source unit explicitly. B is a byte; bit is a bit.
  3. Choose the maximum displayed decimal places, then convert.
  4. Compare decimal and binary results. Copy a displayed value or expand Exact value to copy every digit.

Is a kilobyte 1000 or 1024 bytes?

Here, 1 kB = 1000 bytes and 1 KiB = 1024 bytes. Decimal prefixes increase by 1000; binary prefixes increase by 1024. “KB” is a common informal label whose meaning varies across software. This selector uses unambiguous kB and KiB, so check which convention your source uses.

Why do GB and GiB give different numbers?

They describe different-sized units. One GB is 1,000,000,000 bytes; one GiB is 1,073,741,824 bytes. The same byte count therefore has a smaller numeric value in GiB. Changing units does not change the amount of data.

1 GiB = 1.073741824 GB

How many bits are in a byte?

One byte (B) is 8 bits. For example, 1 bit is 0.125 B and 1000 B is 8000 bits. Fractional byte results are mathematical conversions; actual file sizes measured in bytes are whole numbers of bytes. This tool converts amounts of data, not transfer rates or download times.

What does the approximation marker mean?

Display precision limits fractional digits, not significant digits. Values are rounded half up, and unnecessary trailing zeros are removed. The ≈ marker appears only when rounding changes the value. A tiny positive result may display as ≈ 0 at low precision. Open Exact value to see the full, unrounded decimal.

Copy displayed keeps the approximation marker and unit. Copy exact includes every digit and the unit, regardless of display precision.

Will large byte counts lose precision?

No binary floating-point conversion is used for your number. Decimal input is calculated with BigInt integer arithmetic, preserving large values such as 9007199254740993 B. All supported unit ratios have terminating decimal expansions, so the exact view can show every digit.

Which input formats are accepted?

Zero, integers and decimals are accepted, including .5 and 1. Surrounding spaces are trimmed. Use a dot as the decimal separator. Do not enter signs, grouping commas, internal spaces, scientific notation, or a suffix such as MB. The limit is 128 characters after trimming and 4096 characters before trimming.

Examples only fill an empty input, so they cannot replace your draft. Clear the value before trying another example. Editing a number, source unit or precision clears the old result.

Quick conversion examples

1000 B = 1 kB = 0.9765625 KiB
1 MiB = 1.048576 MB
1 bit = 0.125 B
1 TB = 1000 GB

The paired results put decimal and binary units together, with each unit’s byte factor shown. Unit labels are case-sensitive: B means byte.

Unit reference: NIST binary prefixesWhy explicit units matter: a Files community request