How to convert megabytes to bytes
To convert megabytes (MB) to bytes (B), divide the value in megabytes by 0.000001.
B = MB ÷ 0.000001 (decimal)
B = MB × 1,048,576 (binary)
Example: 5 MB = 5,000,000 B, or 5,242,880 B in binary.
Decimal (SI) counting steps by 1,000 and is what drive makers, macOS and phones use. Binary counting steps by 1,024 and is what Windows and RAM use; its unambiguous IEC names are KiB, MiB and GiB. Bits are decimal either way.
You can also type 5 MB to B into the smart calculator, or mix units: 1 MB + 1 B.
Megabytes to Bytes conversion table
| Megabytes | Bytes (decimal) | Bytes (binary) |
|---|---|---|
| 0.01 MB | 10,000 B | 10,485.76 B |
| 0.1 MB | 100,000 B | 104,857.6 B |
| 0.25 MB | 250,000 B | 262,144 B |
| 0.5 MB | 500,000 B | 524,288 B |
| 1 MB | 1,000,000 B | 1,048,576 B |
| 2 MB | 2,000,000 B | 2,097,152 B |
| 3 MB | 3,000,000 B | 3,145,728 B |
| 4 MB | 4,000,000 B | 4,194,304 B |
| 5 MB | 5,000,000 B | 5,242,880 B |
| 6 MB | 6,000,000 B | 6,291,456 B |
| 7 MB | 7,000,000 B | 7,340,032 B |
| 8 MB | 8,000,000 B | 8,388,608 B |
| 9 MB | 9,000,000 B | 9,437,184 B |
| 10 MB | 10,000,000 B | 10,485,760 B |
| 12 MB | 12,000,000 B | 12,582,912 B |
| 15 MB | 15,000,000 B | 15,728,640 B |
| 20 MB | 20,000,000 B | 20,971,520 B |
| 25 MB | 25,000,000 B | 26,214,400 B |
| 30 MB | 30,000,000 B | 31,457,280 B |
| 40 MB | 40,000,000 B | 41,943,040 B |
| 50 MB | 50,000,000 B | 52,428,800 B |
| 60 MB | 60,000,000 B | 62,914,560 B |
| 75 MB | 75,000,000 B | 78,643,200 B |
| 100 MB | 100,000,000 B | 104,857,600 B |
| 250 MB | 250,000,000 B | 262,144,000 B |
| 500 MB | 500,000,000 B | 524,288,000 B |
| 1,000 MB | 1,000,000,000 B | 1,048,576,000 B |
Converting bytes back to megabytes
1 B = 0.000001 MB. See the Bytes to Megabytes converter, or press the swap button above.
About the units
Megabyte (MB)
In decimal mode 1,000,000 bytes (1,000 KB); in binary mode 1,048,576 bytes (1,024 KB).
Byte (B)
Eight bits.
Digital storage is counted in bits and bytes (1 byte = 8 bits). There are two ways to count bytes. Decimal (SI) prefixes step by 1,000: 1 KB = 1,000 B and 1 GB = 1,000 MB, which is how drive makers, macOS, iOS and Android report sizes. Binary prefixes step by 1,024: 1 KB = 1,024 B and 1 GB = 1,024 MB, which is how Windows and RAM count (the IEC names for these are KiB, MiB and GiB). Bits are always decimal: 1 Kb = 1,000 b.
Questions and answers
How many bytes are in a megabyte?
One megabyte (MB) equals 1,000,000 bytes in decimal (SI) counting, or 1,048,576 bytes in binary counting (1 KB = 1,024 B), which Windows uses.
How do I convert megabytes to bytes?
To convert megabytes to bytes, divide the value in megabytes by 0.000001. The formula is B = MB ÷ 0.000001. For example, 5 MB = 5,000,000 B.
What is 5 MB in B?
5 megabytes is 5,000,000 bytes.
Which is bigger, a megabyte or a byte?
A megabyte is bigger: 1 MB = 1,000,000 B.
Is 1 GB equal to 1,000 MB or 1,024 MB?
Both are in use. In decimal (SI) counting, which drive makers, macOS, iOS and Android use, 1 GB = 1,000 MB. In binary counting, which Windows and RAM use, 1 GB = 1,024 MB; the unambiguous IEC name for that size is the gibibyte (GiB). ConvertEasy has a Decimal / Binary switch so KB, MB, GB and TB follow whichever you need, while KiB, MiB and GiB are always binary.
Are kilobits 1,000 or 1,024 bits?
ConvertEasy treats bits as decimal in both modes: 1 Kb = 1,000 b, 1 Mb = 1,000 Kb. A byte is always 8 bits, so only byte units (KB, MB, GB…) change with the switch.
Does this MB to B converter work offline?
Yes. ConvertEasy is a progressive web app: after your first visit it keeps working with no connection, and you can install it to your home screen from the browser menu.