Advertisements

File size converter

Bytes to MB Converter

Convert a whole number of bytes to decimal megabytes (MB) or binary mebibytes (MiB). See the formula and copy the result.

Conversion formula

MB = bytes ÷ 1,000,000

MiB = bytes ÷ 1,048,576

Enter zero or a positive whole number. You do not need to upload a file. Up to 30 digits before grouping.

Only the byte count is needed. Keep the file on your device.

How to convert bytes to MB or MiB

For decimal megabytes, divide the number of bytes by 1,000,000. The prefix mega means one million, so 1 MB is exactly 1,000,000 bytes.

For binary mebibytes, divide the number of bytes by 1,048,576. This is 2 to the power of 20, so 1 MiB is exactly 1,048,576 bytes.

Use the unit stated by the app, storage label or upload limit you are checking. Converting units does not compress the file, change its contents or measure your connection speed.

  1. Enter the file size as a whole number of bytes.
  2. Choose decimal MB or binary MiB.
  3. Read the result and copy it if needed.

Examples you can check

Examples you can check
BytesDecimal MBBinary MiB
100000010.95367431640625
10485761.0485761
250000000250238.4185791015625

A 1,000,000-byte file is exactly 1 MB, but less than 1 MiB.

A 1,048,576-byte file is exactly 1 MiB, or 1.048576 MB.

A download listed as 250,000,000 bytes is 250 MB. Its byte count stays the same when expressed in MiB.

Exact units, rounded displays

The MB and MiB definitions are exact. A shortened decimal display may be rounded; it does not change the underlying byte count. For an upload limit, compare the exact byte counts when they are available.

Bytes to MB: common questions

Is 1 MB equal to 1,000,000 or 1,048,576 bytes?

In decimal units, 1 MB is 1,000,000 bytes. The binary unit for 1,048,576 bytes is 1 MiB. Some apps label binary values as MB, so check their documentation when the distinction matters.

How many MB is 1,048,576 bytes?

It is exactly 1.048576 MB in decimal units, or exactly 1 MiB in binary units.

Are MB and Mb the same?

No. MB means megabytes; Mb means megabits. One byte contains eight bits, so 1 MB is 8 Mb. Internet plans commonly use Mbps, which is a rate rather than a file size.

Why do two apps show different sizes for the same file?

They may use decimal or binary units, round differently, or show different measurements such as file size and size on disk. Compare the byte counts and the meaning of each label first.

Can this tell me how long the file will take to download?

A size conversion alone cannot predict download time. Use the download-time calculator with the file size and an estimated transfer speed. Real transfers can also be affected by overhead, other traffic and the server.

Related converters and checks

Sources and method