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.
| Unit | Symbol | Value | Bytes |
|---|
| Unit | Symbol | Value | Bytes |
|---|
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:
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.
| Unit | IEC Symbol | Bytes | In bytes |
|---|---|---|---|
| Bit | b | 1/8 | 0.125 |
| Byte | B | 1 | 1 |
| Kilobyte (Kibibyte) | KB / KiB | 1024^1 | 1,024 |
| Megabyte (Mebibyte) | MB / MiB | 1024^2 | 1,048,576 |
| Gigabyte (Gibibyte) | GB / GiB | 1024^3 | 1,073,741,824 |
| Terabyte (Tebibyte) | TB / TiB | 1024^4 | 1,099,511,627,776 |
| Petabyte (Pebibyte) | PB / PiB | 1024^5 | 1,125,899,906,842,624 |
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).
| Unit | Symbol | Bytes | In bytes |
|---|---|---|---|
| Kilobyte | kB | 1000^1 | 1,000 |
| Megabyte | MB | 1000^2 | 1,000,000 |
| Gigabyte | GB | 1000^3 | 1,000,000,000 |
| Terabyte | TB | 1000^4 | 1,000,000,000,000 |
| Petabyte | PB | 1000^5 | 1,000,000,000,000,000 |
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.
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.