Skip to content
Test versionSearch

Unit conversions

Exact bits, bytes and SI/binary data units

Convert data amounts exactly between bits, bytes, SI units such as kB or MB and binary units such as KiB or MiB, without rounding large integers.

How it worksFAQRelated tools

Content reviewed:

The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. JSON, HTML and TXT downloads keep your inputs and all result rows, with exact values where available. Automatic recalculation after editing is off unless you switch it on. Nothing is saved, imported or sent automatically.

b=bit, B=byte, kB/MB/GB/TB use 1000; KiB/MiB/GiB/TiB use 1024. Uppercase ambiguous KB is not inferred. Exact fraction and separately rounded decimal, no actual file measurement.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Strict IPv4/CIDR, exact SI/binary transfer arithmetic or local URL/text rules; explicit conventions and bounded inputs. b=bit, B=byte, kB/MB/GB/TB use 1000; KiB/MiB/GiB/TiB use 1024. Uppercase ambiguous KB is not inferred. Exact fraction and separately rounded decimal, no actual file measurement.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Data amount
1
Input unit
GiB
Output unit
MB
Decimal places 0–12 for numeric conversions
6

Result

Input unit
GiB
Output unit
MB
Bits (exact)
8589934592
Bytes (exact)
1073741824
Result (exact fraction)
16777216/15625
Result (rounded)
1073.741824
Reverse check (exact)
1

Frequently asked questions

How do I convert GiB to MB exactly?

Enter the amount, choose the source unit and the target unit. The editable example converts 1 GiB to MB. Results are shown as an exact fraction plus a separately rounded decimal.

Which prefixes use 1000 and which use 1024?

kB, MB, GB and TB use 1000, while KiB, MiB, GiB and TiB use 1024. Lowercase b means bit and uppercase B means byte.

What happens if I type uppercase KB?

Uppercase ambiguous KB is not inferred, so use kB for 1000 or KiB for 1024.

Does the converter lose precision on large numbers?

No. It converts explicit bit, byte, decimal and binary data quantities without losing large integer precision, and string integers keep every accepted digit.

Does the tool measure real file sizes?

No. There is no actual file measurement. It only converts the quantities you enter.

Can I download the result?

Yes. You can download entered values and original results as JSON, printable HTML or TXT, and the current result as TXT or CSV. Nothing is saved or sent automatically.