AAllMyToolsa pocketful of little tools

Bytes to megabytes: 1,000,000 bytes = 1 MB

Convertersconversion pair

1,000,000 bytes make 1 MB. Convert bytes to megabytes, with the decimal and binary difference explained.

a 5 MB photo is 5,000,000 bytes — the number hiding behind every file manager.

work surface

Math, not advice — results are indicative.Read the disclaimer.

pro tips

Divide by 1,000,000: 5,000,000 bytes is 5 MB.

A megapixel photo is a few million bytes — a few MB once you divide.

Decimal uses 1,000,000; binary MiB uses 1,048,576. Same bytes, different MB.

what it does

A megabyte is 1,000,000 bytes in decimal, so bytes to megabytes is a divide-by-a-million. Small files barely register; big ones collapse into a tidy number.

It shows up when a log or an API reports raw bytes and a file manager shows megabytes, when a size limit is a byte count but the interface talks in MB, and in any migration where both units share the same screen.

The shortcut: move the decimal six places left. 5,000,000 bytes is 5 MB, 500,000 is 0.5 MB, and 1,000 bytes is 0.001 MB. Software counting 1,024 gives MiB instead — the source of the 4.6% gap.

Type any byte value and the widget answers in megabytes instantly, with the math in the hint. Click to copy, and swap to go from megabytes back to bytes. The same decimal-versus-binary gap is explained in MiB vs MB.

quick answers

How many bytes make a megabyte?

1,000,000 in decimal. Software using powers of two counts 1,048,576 — that is a mebibyte (MiB).

How do I convert bytes to megabytes?

Divide the bytes by 1,000,000. 5,000,000 bytes is 5 MB, 2,500,000 is 2.5 MB.

Why does my file show fewer megabytes?

Because the tool may count in MiB (1,048,576 bytes) while the label uses MB, or the other way round. Check which unit it means.