Unit conversion

Bytes to Megabytes Converter (B to MB)

1 B = 0.000001 MB. Enter a value to convert B to MB, then use the formula and table below. Displayed digits may be rounded.

Convert Megabytes to Bytes

Data storageInstant result
Decimals
Formula result = input × 1 ÷ 1000000. 1 B = 1.00000e-6 MB
Nonzero results too small for the selected decimal places use scientific notation.
Common examples
One value, several units
Bits8 bit
Kilobytes0.001 kB
Megabytes1.00000e-6 MB
Gigabytes1.00000e-9 GB
Terabytes1.00000e-12 TB
Kibibytes0.001 KiB
Mebibytes9.53674e-7 MiB
Gibibytes9.31323e-10 GiB

Conversion table

BMB
1 B1.00000e-6 MB
2 B2.00000e-6 MB
5 B5.00000e-6 MB
10 B1.00000e-5 MB
25 B2.50000e-5 MB
50 B0.0001 MB
100 B0.0001 MB

Conversion chart

1 B1.00000e-6 MB
5 B5.00000e-6 MB
10 B1.00000e-5 MB
25 B2.50000e-5 MB
50 B0.0001 MB
Worked example

1 B = 0.000001 MB. Apply the selected conversion formula to other input values.

Unit definition

Bytes (B) One bytes equals 1 byte.

Unit history

The term byte emerged in early computer engineering; modern storage conventions distinguish decimal prefixes such as MB from binary prefixes such as MiB.

Step by step

1. Parse the value, including fractions.
2. Convert B to byte.
3. Convert the base value to MB and apply your display precision.

What this calculation means

Understand the result before using it

This converter uses the decimal definition of the megabyte: 1 MB is exactly 1,000,000 bytes, and one byte contains eight bits. Divide the byte count by 1,000,000 to express it in megabytes. Operating systems often display the binary mebibyte (MiB) instead, which is why a file shown as 5 MB may appear as roughly 4.77 MiB.

Calculated result

The conversion follows the displayed unit relationship. Display rounding can hide additional digits, and measured inputs cannot become more accurate merely by changing units.

Method

Formula, assumptions, and example

Formula

result = input ÷ 1000000

Assumptions

  • Bytes and Megabytes represent the same data storage quantity.
  • The input is expressed in B; the output is expressed in MB.
  • The unit definitions and conventional relationship shown on this page apply.
Worked example

For 5,000,000 bytes, calculate 5,000,000 ÷ 1,000,000 = 5 MB. For 250,000 bytes, the result is 0.25 MB. To reverse the conversion, multiply megabytes by 1,000,000.

When to use it

Good uses

  • Convert a raw byte count from a log, API response or database field into readable megabytes.
  • Compare a byte total against a storage limit stated in MB.
Limitations

Common mistakes to avoid

  • MB (1,000,000 bytes) and MiB (1,048,576 bytes) are different units; check which one the specification means.
  • B means bytes and b means bits — one byte is eight bits, so 8 MB is not 8 Mb.
  • Storage devices report capacity in decimal MB while some file managers report MiB; both figures can be correct.
References

Sources and further reading

These references explain the underlying standards or provide authoritative context. Your own contract, institution, clinician, product documentation, local code, or governing standard may be the controlling source.

Prefixes for binary multiplesInternational Electrotechnical Commission

Explains the distinction between decimal prefixes such as MB and binary prefixes such as MiB.

FAQ

Questions about this calculation

How many bytes are in a megabyte?

Using decimal prefixes, 1 MB equals 1,000,000 bytes. The binary mebibyte is larger: 1 MiB equals 1,048,576 bytes.

How do I convert bytes to megabytes?

Divide the byte count by 1,000,000. For example, 5,000,000 B ÷ 1,000,000 = 5 MB.

Why does my file show fewer MB than expected?

The system may be displaying mebibytes (MiB). Divide bytes by 1,048,576 for MiB, which gives a smaller number than dividing by 1,000,000.

Related data storage conversions