How to convert B to MB
The Byte to Megabyte conversion is simple once you know the factor: 1 B = 0.000001 MB. Below are the formula, three solved examples, a ready table and answers to the questions people ask most about B and MB.
Searching “b to mb”, “byte to megabyte” or “byte in megabytes”? It is the same conversion — the answer is above.
Byte to Megabyte formula
Since 1 Megabyte = 1,000,000 bytes, the rule is MB = B ÷ 1,000,000. In words: divide the number of bytes by 1,000,000 to get megabytes.
MB = B ÷ 1,000,000
Examples: B to MB step by step
For example, someone dealing with file sizes and computer memory might need this.
Example 1: 512 B to MB
- Start with the value: 512 B.
- Divide by 1,000,000 (because 1 MB = 1,000,000 B).
- 512 ÷ 1,000,000 = 0.000512 MB.
Example 2: 4,096 B to MB
- Start with the value: 4,096 B.
- Divide by 1,000,000 (because 1 MB = 1,000,000 B).
- 4,096 ÷ 1,000,000 = 0.004096 MB.
Example 3: 1,000,000 B to MB
- Start with the value: 1,000,000 B.
- Divide by 1,000,000 (because 1 MB = 1,000,000 B).
- 1,000,000 ÷ 1,000,000 = 1 MB.
What is a Byte (B)?
A byte (B) is 8 bits, enough to store one English character.
What is a Megabyte (MB)?
A megabyte (MB) is 1,000,000 bytes (decimal).
Where is B to MB used?
Storage conversions matter when buying hard disks, phones, data packs or uploading files with a size limit. In practice B appears in file sizes and computer memory; MB is used for photos, songs, PDF uploads, mobile data use and app sizes.
Megabyte to Byte (reverse)
To go the other way, 1 Megabyte = 1,000,000 B, so you multiply MB by 1,000,000. For example, 0.000001 MB is back to 1 B. Use the Megabyte to Byte converter for that direction.
1 B in other units
8 b
0.001 KB
0.000001 MB
1.000000e-9 GB
1.000000e-12 TB
1.000000e-15 PB
0.00097656 KiB
9.536743e-7 MiB
9.313226e-1 GiB
9.094947e-13 TiB
Good to know
A Byte is smaller than a Megabyte (1 Megabyte is 1,000,000 bytes), so the number in MB is always smaller than the number in B.
KB, MB, GB and TB here are decimal (1,000-based). KiB, MiB, GiB and TiB are the binary (1,024-based) units your computer shows.
Quick answers: 2 B = 0.000002 MB; 10 B = 0.00001 MB; 512 B = 0.000512 MB; 4,096 B = 0.004096 MB; 1,000,000 B = 1 MB.