Skip to content

Utilities

Byte Converter

Convert bytes between decimal and binary storage units.

How to use this tool
  1. Enter a file or storage size and choose its source unit. KB, MB and GB use decimal powers; KiB, MiB and GiB use binary powers.
  2. Choose a target unit and select Convert value, or load a Bytes to MB, MB to GB, MiB to MB or TB to TiB example.
  3. Read the selected conversion and formula, compare the full table and adjust the displayed precision before copying a result.

Bytes to MB, GB & Binary Units

Loading tool…

About this tool

What is Byte Converter?

Compare storage sizes using the unit system actually specified by the source. Decimal units scale by one thousand, while binary units scale by 1,024. A conversion changes the representation of an amount of data; it does not measure an application's memory use, a file's compression ratio or the capacity available after filesystem overhead.

A worked example

See the difference between a mebibyte and a megabyte

Example input

1 MiB

Expected result

1,048,576 B
1.048576 MB

Choose MiB as the source unit. One mebibyte is 1,024 squared bytes, which is slightly more than one decimal megabyte. Preserve the unit label when copying a result into a report. A number without its decimal or binary unit can make two correct measurements appear to disagree.

Common mistakes and limits

  • An uppercase B denotes bytes; a lowercase b commonly denotes bits. A bandwidth figure in megabits is not the same quantity as a file size in megabytes.
  • Display rounding can hide a small difference. Increase precision when comparing near-equal limits rather than rounding one amount upward.

Features

What you can do

  • Convert between bytes and decimal storage units.
  • Convert between binary KiB, MiB, GiB, TiB and PiB units.
  • Compare decimal and binary values side by side.
  • Choose a target unit and see the conversion through bytes.
  • Open worked examples for common file-size conversions.
  • Control the displayed decimal precision.
  • Copy individual values or every conversion.
  • Perform all calculations locally in your browser.

Frequently asked questions

Questions about Byte Converter

What is the difference between MB and MiB?

One megabyte is 1,000,000 bytes, while one mebibyte is 1,048,576 bytes. MB uses decimal powers and MiB uses binary powers.

Why does an operating system show a different file size?

Some systems display binary calculations while labeling them with decimal symbols such as MB or GB, which can make the reported size appear different.

How many bytes are in one gigabyte?

One decimal gigabyte contains 1,000,000,000 bytes. One binary gibibyte contains 1,073,741,824 bytes.

How do I convert bytes to MB?

Divide bytes by 1,000,000 for decimal MB. For example, 1,048,576 bytes equals 1.048576 MB or exactly 1 MiB. Select B as the source and MB as the target, or use the Bytes to MB example.

Does this converter support bits or transfer speeds?

This workspace converts byte-based storage sizes. It does not convert connection speeds. One byte contains eight bits, so Mbps and MB/s are different units.

Are all displayed digits exact?

No. Results use floating-point arithmetic and the selected display precision. Very large integers can lose precision, and long decimal fractions may be rounded.

Are values sent to a server?

No. Every conversion is calculated locally inside your browser.

Related tools