ZeroUtil

Byte / Bit Converter

Convert between bits, bytes, KB, MB, GB, TB and PB.

Bit (b)
Byte (B)
Kilobyte (KB)
Megabyte (MB)
Gigabyte (GB)
Terabyte (TB)
Petabyte (PB)

How to Use the Byte / Bit Converter

This tool converts data sizes between bits, bytes, kilobytes, megabytes, gigabytes, terabytes and petabytes instantly.

  1. Enter a value — type any non-negative number into the input field.
  2. Select the input unit — choose the unit of the value you entered (b, B, KB, MB, GB, TB or PB).
  3. Choose a base — toggle between Binary (1024-based, used by operating systems and RAM) and Decimal (1000-based, used by storage manufacturers and networking).
  4. Read all conversions — every unit is displayed simultaneously in a grid, updating in real time as you type.
  5. Copy any result — click the Copy button next to any row to copy that value to your clipboard.

All conversions run entirely in your browser. No data is sent to any server.

Frequently Asked Questions

What is the difference between binary and decimal base?

In binary (base-1024) mode, 1 KB = 1,024 bytes, 1 MB = 1,048,576 bytes, and so on. This is how operating systems and RAM report sizes. In decimal (base-1000) mode, 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes. Hard drive and SSD manufacturers typically use decimal units, which is why a "500 GB" drive shows less than 500 GB in your OS.

How many bits are in a byte?

There are exactly 8 bits in 1 byte. A bit is the smallest unit of data (0 or 1), while a byte is a group of 8 bits and is the standard unit for measuring data storage.

Why does my hard drive show less space than advertised?

Drive manufacturers measure in decimal (1 GB = 1,000,000,000 bytes), while your operating system measures in binary (1 GB = 1,073,741,824 bytes). A 1 TB drive contains 1,000,000,000,000 bytes, which is about 931 GB in binary. Use the decimal base in this tool to see what the manufacturer advertises and the binary base to see what your OS reports.

How do I convert MB to GB?

In binary mode, divide MB by 1,024. In decimal mode, divide MB by 1,000. For example, 2,048 MB = 2 GB (binary) or 2,048 MB = 2.048 GB (decimal). Just enter the value, select MB as the input unit and read the GB row.

What is a petabyte?

A petabyte (PB) is 1,024 terabytes in binary or 1,000 terabytes in decimal. In binary terms that is roughly 1.125 quadrillion bytes. Petabytes are used to measure very large data sets such as data-centre storage, cloud services and scientific archives.

Ad

More Math & Calculators