Pinterest Pixel

How to Convert Bytes to MB and GB in Excel

John Michaloudis
Working with data sizes often means dealing with large numbers in bytes, especially when handling logs, storage reports, or downloads.
I have faced this many times while managing data exports or auditing storage usage.

It's hard to make sense of file sizes when everything is just a string of digits in bytes.

So, I found it extremely useful to convert Bytes to MB & GB in Excel—making data much more readable and analysis-friendly.

Working with data sizes often means dealing with large numbers in bytes, especially when handling logs, storage reports, or downloads. I have faced this many times while managing data exports or auditing storage usage. It’s hard to make sense of file sizes when everything is just a string of digits in bytes. So, I found it extremely useful to convert Bytes to MB & GB in Excel—making data much more readable and analysis-friendly.

Let me walk you through how I do this step-by-step.

Key Takeaways:

  • Data in Excel is measured in bytes, kilobytes (KB), megabytes (MB), and gigabytes (GB).
  • Excel formulas can be used for data conversion to avoid manual calculation.
  • The CONVERT function simplifies data unit conversions and saves time.
  • Units like KB, MB, GB, etc. can make reports clearer.
  • Common mistakes include using an incorrect formula or an incorrect conversion factor.

 

Convert Bytes to MB & GB

Understanding the Basics

Before using the Excel formula, here is the conversion factor:

  • 1 KB = 1,024 Bytes
  • 1 MB = 1,024 KB = 1,048,576 Bytes
  • 1 GB = 1,024 MB = 1,073,741,824 Bytes

So, essentially:

MB = Bytes / 1,048,576

Bytes to MB

GB = Bytes / 1,073,741,824

Bytes to MB

CONVERT Function

The CONVERT function is a valuable tool that is used for unit conversion. It can convert data units like bytes, kilobytes, megabytes, and gigabytes. The synrax for this formula is:

=CONVERT(number, from_unit, to_unit)

For example, to convert bytes to megabytes, use this formula:

Bytes to MB

The CONVERT function is a straightforward formula that can easily convert units in Excel. It removes the need for manual conversion and thus mitigates any human error. It is very useful when working with large dataset. IT saves time and produces accurate results.

 

Tips & Tricks

Dynamic Labeling with Units

If you want to show the values with the unit, you can modify the formula accordingly.

For MB, use the formula:

Bytes to MB

For GB, use the formula:

Bytes to MB

Displaying units next to the values is useful when your reports require clarity.

FAQs

How to convert a byte to MB?

You can convert bytes to MB by using this formula

MB = Bytes / 1048576

How to convert KB to MB in Excel?

You can convert KB to MB by dividing the value in KB by 1024.

MB = KB/1024

How to display as “1.25 MB” in Excel?

You can use the ROUND formula to convert bytes to MB.

=ROUND(A2/1048576, 2) & ” MB”

Cell A2 contains the value 1.25.

How to avoid any rounding errors in data conversion in Excel?

Check your cell formatting to make sure that sufficient decimal places are shown. Also, be cautious of Excel’s data type limitations when working with very large numbers.

How to convert bytes to megabytes in Excel?

You can use the CONVERT formula =CONVERT(A2, "byte", "Mbyte"), where A2 contains the byte value. This converts the value in bytes directly to megabytes.

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  The Ultimate Guide to Excel for the Web - Free Online Spreadsheet Editing

Steps To Follow

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...