FormulaCraft

How to convert bytes to megabytes in Excel and Google Sheets

Topic:Unit conversion
Excel & Google Sheets
=B2/1048576

Verified example

Computed by a real spreadsheet engine on the sample data below.

FileBytesMB
doc.pdf2097152
image.png524288
video.mp4104857600
log.txt10240

=B2/10485762

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter file sizes in bytes in column B.
  2. 2In column C, enter =B2/1048576 to convert to megabytes.
  3. 3Copy the formula down for all rows.
  4. 4Format the column to 2 decimal places for readability.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Should I use 1,000,000 or 1,048,576 for megabytes?

Storage manufacturers often use 1,000,000 (decimal MB), while operating systems use 1,048,576 (binary MiB). Use 1,048,576 when matching OS-reported file sizes.

Can I use CONVERT to go from bytes to megabytes?

CONVERT does not have byte unit strings in Excel or Sheets, so manual division is the correct approach.

More on Unit conversion

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: