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.