All calculators

Bits & Bytes Converter / Transfer Time

Convert bits, bytes, MB and MiB, then estimate ideal transfer time from a link rate in megabits per second.

Enter your values

Try an example

Your result

Output1.048576 MB
Total bits
8388608
Ideal transfer time (s)
1.048576

Calculated

Ideal payload transfer time; excludes protocol overhead and other traffic.

Storage is counted in bytes. Link rates are in bits.
Bits & Bytes Converter / Transfer TimeFILE / PAYLOAD1 MiBRECEIVER1.048576 MBDATA LINK8 Mb/s

How this answer is calculated

These steps use your current values. Change an input to follow a different calculation.

  1. 1

    Convert the size to bits

    1 × 8388608 = 8388608 bit
  2. 2

    Express the same size in the target unit

    8388608 ÷ 8000000 = 1.048576 MB
  3. 3

    Divide by the link rate

    8388608 bit ÷ (8 × 10⁶ bit/s) = 1.048576 s

How to use this on a job

A 100 MB log and a 100 Mb/s link do not imply a one-second download. File sizes usually count bytes; link speeds count bits. Sort out that factor of eight before blaming the network.

  1. 01

    Select the source unit exactly as written on the file or specification. A capital B means byte. The letter i in MiB means a power-of-two prefix.

  2. 02

    Choose the result unit. The calculation first converts the source to bits, so there is only one conversion path between storage and transmission units.

  3. 03

    Enter the link rate in decimal Mb/s. The displayed duration is a lower bound at that constant payload rate. Real transfers also include headers, acknowledgements, other traffic and device processing.

Work through one example

time [s] = size [bits] ÷ rate [bits/s]

One MiB contains 8,388,608 bits. At a sustained payload rate of 8 Mb/s, it takes 1.048576 seconds. One decimal MB at that same rate takes exactly one second. The difference comes from the prefix, not from a rounding error.

Before you trust the answer

A bus running at its nameplate speed does not deliver that entire rate as useful application data. Do not use the ideal time as a PLC communication watchdog setting. Measure the real transaction cycle and allow for contention and retries.

Definitions & source notes

NIST — binary prefixes

Original TryPLC examples and drawings. Check the device manual for configuration-specific limits.

The prefixes that cause the mix-up

UnitBytesBits
1 B18
1 kB1,0008,000
1 KiB1,0248,192
1 MB1,000,0008,000,000
1 MiB1,048,5768,388,608

Questions that come up on the job

Why is a 100 Mb/s download not 100 MB/s?

Lower-case b means bit; capital B means byte. Divide the bit rate by eight to get a theoretical byte rate. A 100 Mb/s link can carry at most 12.5 MB/s before accounting for protocol overhead and time spent doing other work.

Can I use this time as a PLC watchdog?

No. It is payload size divided by a constant link rate. A PLC transaction also waits for the task, the device response, bus access and possibly retries. Measure complete transactions under realistic load before choosing a watchdog.

TRYPLC FIELD REFERENCE / 01

Bits & Bytes Converter / Transfer Time

Convert bits, bytes, MB and MiB, then estimate ideal transfer time from a link rate in megabits per second.

  • 1 B = 8 bits
  • 1 kB = 1,000 B
  • 1 KiB = 1,024 B
  • 1 MB = 1,000,000 B
  • 1 MiB = 1,048,576 B
Bits & Bytes Converter / Transfer TimeFILE / PAYLOAD1 MiBRECEIVER1.048576 MBDATA LINK8 Mb/s

How to use this on a job

A 100 MB log and a 100 Mb/s link do not imply a one-second download. File sizes usually count bytes; link speeds count bits. Sort out that factor of eight before blaming the network.

  1. 01

    Select the source unit exactly as written on the file or specification. A capital B means byte. The letter i in MiB means a power-of-two prefix.

  2. 02

    Choose the result unit. The calculation first converts the source to bits, so there is only one conversion path between storage and transmission units.

  3. 03

    Enter the link rate in decimal Mb/s. The displayed duration is a lower bound at that constant payload rate. Real transfers also include headers, acknowledgements, other traffic and device processing.

Work through one example

time [s] = size [bits] ÷ rate [bits/s]

One MiB contains 8,388,608 bits. At a sustained payload rate of 8 Mb/s, it takes 1.048576 seconds. One decimal MB at that same rate takes exactly one second. The difference comes from the prefix, not from a rounding error.

Before you trust the answer

A bus running at its nameplate speed does not deliver that entire rate as useful application data. Do not use the ideal time as a PLC communication watchdog setting. Measure the real transaction cycle and allow for contention and retries.

Definitions & source notes

NIST — binary prefixes

Original TryPLC examples and drawings. Check the device manual for configuration-specific limits.

https://tryplc.com/tools/data-size-transfer