Convert Megabytes to Bytes
Quick presets:
Keyboard shortcut: press S to swap units.
Contextual examples
- 1 Megabytes = 1,000,000 Bytes
- 10 Megabytes = 10,000,000 Bytes
- 100 Megabytes = 100,000,000 Bytes
- 1000 Megabytes = 1,000,000,000 Bytes
How many megabytes in a bytes?
In 1 megabytes there are 1,000,000 bytes. Meanwhile in 1 bytes there are 0.00000100000 megabytes. Keep reading to learn more about each unit of measure and how they are calculated. Or just use the Bytes to Megabytes calculator above to convert any number.
* Values rounded to 6 decimal places for readability
How to convert megabytes to bytes?
To convert megabytes (MB) to bytes (B), you multiply the number of megabytes by a fixed value. The key is knowing which MB standard you’re using.
Decimal (SI) megabyte: 1 MB = 1,000,000 bytes
Formula: bytes = MB × 1,000,000
Example: 5 MB = 5 × 1,000,000 = 5,000,000 bytesBinary (IEC) mebibyte (often used in computing): 1 MiB = 1,048,576 bytes (2²⁰)
Formula: bytes = MiB × 1,048,576
Example: 5 MiB = 5 × 1,048,576 = 5,242,880 bytes
Tip: Storage makers often use MB (1,000,000 bytes), while many computer systems report sizes closer to MiB (1,048,576 bytes).
Frequently asked questions
How many bytes are in a megabyte (MB)?
It depends on the system you use.
- Decimal (SI): 1 MB = 1,000,000 bytes
- Binary (base-2): 1 MB is often used to mean 1 MiB, where 1 MiB = 1,048,576 bytes
Storage makers often use decimal. Many computer systems use binary.
Is 1 MB equal to 1,048,576 bytes?
Not always. 1,048,576 bytes is 1 mebibyte (MiB), not 1 megabyte (MB) in the strict decimal sense. People still say “MB” when they mean “MiB,” so it helps to check the context.
What’s the difference between MB and MiB?
These units measure data size, but they use different bases.
- MB (megabyte) uses base-10: 1 MB = 10⁶ bytes = 1,000,000 bytes
- MiB (mebibyte) uses base-2: 1 MiB = 2²⁰ bytes = 1,048,576 bytes
MiB is more exact for memory and some file size tools.
Why do some devices show different MB sizes?
Different systems use different definitions.
- Hard drives and SSDs often use decimal MB
- Operating systems and some apps may show sizes using binary units, even if they label them as MB
That mismatch makes the same file look “smaller” or “larger” depending on the display.
How do you convert megabytes to bytes?
Use the right rule for your situation.
- Decimal conversion: bytes = megabytes × 1,000,000
- Binary-style conversion (if MB is used like MiB): bytes = megabytes × 1,048,576
Write down which standard you need before converting.
How do you convert bytes to megabytes?
Divide bytes by the matching unit size.
- Decimal MB: megabytes = bytes ÷ 1,000,000
- Binary-style (MiB): mebibytes = bytes ÷ 1,048,576
Round only at the end to keep results accurate.
Which conversion should I use for file sizes?
Most file size talk uses decimal MB (1,000,000 bytes). Some systems show file sizes in binary units but may still label them as MB. If you need exact results, look for “MiB” or a note about base-2.
Which conversion should I use for RAM and memory?
RAM is based on powers of two, so MiB (1,048,576 bytes) often matches how memory is addressed and reported. Many tools still label it as MB, even when they mean MiB.
How many bytes are in 10 MB?
Using each standard:
- Decimal: 10 MB = 10 × 1,000,000 = 10,000,000 bytes
- Binary-style (MiB): 10 MiB = 10 × 1,048,576 = 10,485,760 bytes
How many bytes are in 100 MB?
Using each standard:
- Decimal: 100 MB = 100 × 1,000,000 = 100,000,000 bytes
- Binary-style (MiB): 100 MiB = 100 × 1,048,576 = 104,857,600 bytes
Why does “MB” sometimes mean different things?
“MB” is used in everyday language as a general term. In strict terms, MB is decimal and MiB is binary. Many apps and labels keep using MB for both, since it’s familiar. That habit causes confusion in conversions.
Are megabytes and bytes used for download speeds?
Download speeds usually use bits, not bytes.
- Mbps means megabits per second (small b)
- MB/s means megabytes per second (capital B)
Also, internet speeds often use decimal units, so 1 Mb = 1,000,000 bits.
Does capitalization matter in MB and B?
Yes. B means bytes. b means bits.
- MB = megabytes
- Mb = megabits
That one letter changes the value by a factor of 8.
What’s the most accurate way to avoid mistakes?
Use the full unit name or the right symbol.
- Use MB for decimal megabytes (1,000,000 bytes)
- Use MiB for binary mebibytes (1,048,576 bytes)
When you share results, include the standard you used.
Related calculators
How does this converter work?
The Calculate Box tool to convert megabytes to bytes uses the open source script Convert.js to convert units of measurement. To use this tool, simply type a megabytes value in the box and have it instantly converted to bytes.