Byte Conversion Calculator

This calculator converts any value between the units used to measure digital storage and data - bits, bytes, kilobytes, megabytes, gigabytes, terabytes and petabytes. It matters because there are two different definitions of these units in everyday use: operating systems, RAM specifications and file managers use the binary system, where each step up is a multiple of 1,024, while hard drive manufacturers, SSD makers and internet providers use the decimal system, where each step is a multiple of 1,000. This is why a "1 TB" drive shows as roughly 931 GiB in Windows, and why file sizes on screen never quite match what the box promised. You enter a value and choose which unit it is currently in, from bits through to petabytes in either system, then set your preferred display precision and choose fixed decimal or scientific notation for very large or small numbers. The calculator instantly returns the equivalent in bits, bytes, and megabytes in both binary and decimal form as headline results, plus full conversion tables covering every unit in the binary (base 1024) and decimal (base 1000) systems side by side. Use it to check download times against advertised broadband speeds, work out the real usable storage on a new drive, convert RAM or file sizes for a spec sheet, or simply settle an argument about what a gigabyte actually is.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Standard reference  IEC 80000-13 binary prefixes (kibibyte, mebibyte, etc.) and SI decimal prefixes.

1. Enter Value

2. Options

Conversion Results

Bits
-
b
Bytes
-
B
Megabytes (binary)
-
MB / MiB
Megabytes (decimal)
-
MB (SI)

Binary System (Base 1024)

UnitSymbolValueBytes

Decimal System (Base 1000)

UnitSymbolValueBytes

How Byte Conversion Works

Digital storage is measured in bytes, where each byte contains 8 bits. A bit is the smallest unit of digital information and can hold either a 0 or a 1. All file sizes, memory capacities, and storage devices are ultimately measured in multiples of bytes.

There are two systems for expressing byte multiples, which differ in what "kilo", "mega", and "giga" mean:

Binary System (Base 1024)

Computers work in base 2, so the natural multiplier is 2 to the power of 10 = 1,024. Operating systems (Windows, macOS, Linux), RAM specifications, and many file managers use this system. The IEC introduced specific names to remove ambiguity: kibibyte (KiB), mebibyte (MiB), gibibyte (GiB) and so on, though many people still say "kilobyte" or "megabyte" when they mean the binary values.

UnitIEC SymbolBytesIn bytes
Bitb1/80.125
ByteB11
Kilobyte (Kibibyte)KB / KiB1024^11,024
Megabyte (Mebibyte)MB / MiB1024^21,048,576
Gigabyte (Gibibyte)GB / GiB1024^31,073,741,824
Terabyte (Tebibyte)TB / TiB1024^41,099,511,627,776
Petabyte (Pebibyte)PB / PiB1024^51,125,899,906,842,624

Decimal System (Base 1000)

Hard drive manufacturers, solid-state drive (SSD) manufacturers, and network equipment vendors use the SI (International System of Units) decimal prefixes where 1 kilo = 1,000. This is why a "1 TB" drive shows as roughly 931 GiB in Windows: Windows uses binary GiB (1,073,741,824 bytes) while the manufacturer counts in decimal GB (1,000,000,000 bytes).

UnitSymbolBytesIn bytes
KilobytekB1000^11,000
MegabyteMB1000^21,000,000
GigabyteGB1000^31,000,000,000
TerabyteTB1000^41,000,000,000,000
PetabytePB1000^51,000,000,000,000,000

Worked Example: 1 Byte

Starting with 1 byte (the default), the calculator converts to all units as follows:

These match the default output of the calculator above with precision set to 4 decimal places.

Common Uses

Related Calculators

Method and sources: Binary prefix values follow IEC 80000-13:2008 (kibibyte = 2^10 bytes, mebibyte = 2^20 bytes, etc.). Decimal prefix values follow the International System of Units (SI) where kilo = 10^3, mega = 10^6, and so on. The bit-to-byte relationship (1 byte = 8 bits) is defined by the standard ASCII/Unicode encoding convention.

This calculator converts between common digital storage units using standard binary (base-1024) and decimal (base-1000) systems. Results are rounded to the selected precision. For very large or very small values, use scientific notation mode to see full precision.

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-19 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.