Unit conversion

Megabytes to Bytes Converter (MB to B)

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

Convert Bytes to Megabytes

Data storageInstant result
Decimals
Formula result = input × 1000000 ÷ 1. 1 MB = 1,000,000 B
Nonzero results too small for the selected decimal places use scientific notation.
Common examples
One value, several units
Bytes1,000,000 B
Bits8,000,000 bit
Kilobytes1,000 kB
Gigabytes0.001 GB
Terabytes1.00000e-6 TB
Kibibytes976.5625 KiB
Mebibytes0.9537 MiB
Gibibytes0.0009 GiB

Conversion table

MBB
1 MB1,000,000 B
2 MB2,000,000 B
5 MB5,000,000 B
10 MB10,000,000 B
25 MB25,000,000 B
50 MB50,000,000 B
100 MB100,000,000 B

Conversion chart

1 MB1,000,000 B
5 MB5,000,000 B
10 MB10,000,000 B
25 MB25,000,000 B
50 MB50,000,000 B
Worked example

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

Unit definition

Megabytes (MB) One megabytes equals 1,000,000 byte.

Unit history

Megabytes is represented here using its modern SI definition or an internationally accepted relationship to an SI base unit.

Step by step

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

What this calculation means

Understand the result before using it

Using decimal prefixes, 1 MB is exactly 1,000,000 bytes. Multiply the megabyte value by 1,000,000. This direction is used when a storage size needs to become an exact byte count — for a buffer, a database row limit or a file-size check in code.

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

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

For 2.5 MB, calculate 2.5 × 1,000,000 = 2,500,000 bytes. For 0.125 MB, the result is 125,000 bytes. To reverse it, divide bytes by 1,000,000.

When to use it

Good uses

  • Convert a file or buffer size in megabytes into an exact byte count.
  • Check a byte-based limit against a size quoted in MB on a product page.
Limitations

Common mistakes to avoid

  • MB is decimal (1,000,000 B); the binary mebibyte MiB is 1,048,576 B.
  • B means bytes and b means bits — 1 MB is 8 megabits.
  • Allocated capacity in bytes is the nominal figure; formatted usable space is smaller.
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?

1,000,000 bytes using decimal prefixes. The binary mebibyte contains 1,048,576 bytes.

How do I convert MB to bytes?

Multiply by 1,000,000. For example, 2.5 MB × 1,000,000 = 2,500,000 bytes.

What is the difference between MB and MiB?

MB is 1,000,000 bytes and MiB is 1,048,576 bytes. Decimal MB is the SI unit and the one drive makers advertise.

Related data storage conversions