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.
Table of Contents
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
GB = Bytes / 1,073,741,824
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:
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:
For GB, use the formula:
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.
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.




