Skip to content

Byte Converter

Embed

Paste this where you want Byte Converter on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/byte-converter/" width="100%" height="500" frameborder="0" loading="lazy" title="Byte Converter"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/byte-converter/">Byte Converter</a> by BrowserUtils</p>

Convert bytes with binary KiB and decimal KB units.Runs in this tab.

Binary (1024-based)

Bytes1,073,741,824
KiB1,048,576
MiB1,024
GiB1
TiB9.7656e-4
PiB9.5367e-7

Decimal (1000-based)

Bytes1,073,741,824
KB1,073,741.824
MB1,073.7418
GB1.0737
TB0.001074
PB1.0737e-6

How to use Byte Converter

  1. Enter a number. Choose Standard: Binary, 1024 (KiB, MiB, GiB) or Decimal, 1000 (KB, MB, GB). Then choose the unit.
  2. Read the Binary (1024-based) table for Bytes, KiB, MiB, GiB, TiB, and PiB.
  3. Read the Decimal (1000-based) table for Bytes, KB, MB, GB, TB, and PB. The two tables always describe the same number of bytes.

KiB and KB on this converter

The Standard menu chooses how the number you type is turned into bytes.

  • Binary, 1024 uses Bytes, KiB, MiB, GiB, TiB, and PiB. The page opens here, on 1 GiB.
  • Decimal, 1000 uses Bytes, KB, MB, GB, TB, and PB.

Both result tables always show. The binary table divides by powers of 1024. The decimal table divides by powers of 1000. A row below 1 and at least 0.001 is printed with 6 decimal places. A row from 1 up to 1000 is printed with 4 decimal places.

1 GiB

Binary, value 1, unit GiB. That is 1,073,741,824 bytes.

Table Row Shown
Binary GiB 1
Decimal GB 1.0737

A decimal gigabyte is 1,000,000,000 bytes, so the GB row is a bit more than 1. Switch to Decimal and choose GB if you want that row to read 1. One decimal GB is 1,000,000,000 bytes, and the binary GiB row then shows 0.931323.

Bytes to MB

Value 1000000, unit Bytes.

Table Row Shown
Binary MiB 0.953674
Decimal MB 1

500 MiB

Binary, value 500, unit MiB. That is 500 × 1,024² = 524,288,000 bytes. The binary MiB row is 500. The decimal GB row is 0.524288. The decimal MB row is 524.2880.

Hard-drive and network sizes are often the 1,000-based column. File-system and RAM sizes are often the 1,024-based column. Pick the standard that matches the label you started with.

Next step

Questions

What is the difference between MB and MiB on this page?
MiB is the binary unit, 1,048,576 bytes. MB is the decimal unit, 1,000,000 bytes. Pick Binary and MiB to multiply by 1024 squared. Pick Decimal and MB to multiply by 1,000,000. Both tables then show that same byte count in every unit.
If I type 1 GiB, why is the decimal GB row not 1?
1 GiB is 1,073,741,824 bytes. The binary table shows 1 GiB. The decimal GB row shows 1.0737, because a decimal gigabyte is 1,000,000,000 bytes. Switch Standard to Decimal and choose GB if you want the GB row to read 1.
How do I convert bytes to MB?
Enter 1000000, leave the unit on Bytes, and read the decimal table. MB is 1. The binary table shows 0.953674 MiB for the same bytes.

More in Number & Data Converters

All 20 number & data converters