SwapUnits
    Scale bytes, kilobytes, megabytes, and terabytes accurately—decimal or binary.

    Data Storage Conversion Library

    Storage vendors and operating systems toggle between decimal (powers of 10) and binary (powers of 2) units. This reference clarifies both systems so capacity reports stop disagreeing.

    Hard drives, SSDs, memory modules, and file systems each use different conventions. The table highlights the decimal units (kB, MB, GB) alongside the binary versions (KiB, MiB, GiB) so you know how much space you really have.

    Base unit

    Byte (B)

    Units covered

    9

    Popular conversions

    3

    Ready to convert

    Open live converter

    Convert data storage units instantly

    This converter shows data storage units only. Pick any two and get results immediately.

    Open full converter
    1 GB = 1,000 MB
    From
    To
    Result
    1 (GB) gigabyte equals
    1,000(MB) megabyte
    Formula

    MB = GB × 1,000

    1 GB × 1,000 = 1,000 MB

    Conversion pair tiles

    Jump directly to any data storage conversion.

    72 options
    B → KBByte to KilobyteView detailsB → KiBByte to KibibyteView detailsB → MBByte to MegabyteView detailsB → MiBByte to MebibyteView detailsB → GBByte to GigabyteView detailsB → GiBByte to GibibyteView detailsB → TBByte to TerabyteView detailsB → TiBByte to TebibyteView detailsKB → BKilobyte to ByteView detailsKB → KiBKilobyte to KibibyteView detailsKB → MBKilobyte to MegabyteView detailsKB → MiBKilobyte to MebibyteView detailsKB → GBKilobyte to GigabyteView detailsKB → GiBKilobyte to GibibyteView detailsKB → TBKilobyte to TerabyteView detailsKB → TiBKilobyte to TebibyteView detailsKiB → BKibibyte to ByteView detailsKiB → KBKibibyte to KilobyteView detailsKiB → MBKibibyte to MegabyteView detailsKiB → MiBKibibyte to MebibyteView detailsKiB → GBKibibyte to GigabyteView detailsKiB → GiBKibibyte to GibibyteView detailsKiB → TBKibibyte to TerabyteView detailsKiB → TiBKibibyte to TebibyteView detailsMB → BMegabyte to ByteView detailsMB → KBMegabyte to KilobyteView detailsMB → KiBMegabyte to KibibyteView detailsMB → MiBMegabyte to MebibyteView detailsMB → GBMegabyte to GigabyteView detailsMB → GiBMegabyte to GibibyteView detailsMB → TBMegabyte to TerabyteView detailsMB → TiBMegabyte to TebibyteView detailsMiB → BMebibyte to ByteView detailsMiB → KBMebibyte to KilobyteView detailsMiB → KiBMebibyte to KibibyteView detailsMiB → MBMebibyte to MegabyteView detailsMiB → GBMebibyte to GigabyteView detailsMiB → GiBMebibyte to GibibyteView detailsMiB → TBMebibyte to TerabyteView detailsMiB → TiBMebibyte to TebibyteView detailsGB → BGigabyte to ByteView detailsGB → KBGigabyte to KilobyteView detailsGB → KiBGigabyte to KibibyteView detailsGB → MBGigabyte to MegabyteView detailsGB → MiBGigabyte to MebibyteView detailsGB → GiBGigabyte to GibibyteView detailsGB → TBGigabyte to TerabyteView detailsGB → TiBGigabyte to TebibyteView detailsGiB → BGibibyte to ByteView detailsGiB → KBGibibyte to KilobyteView detailsGiB → KiBGibibyte to KibibyteView detailsGiB → MBGibibyte to MegabyteView detailsGiB → MiBGibibyte to MebibyteView detailsGiB → GBGibibyte to GigabyteView detailsGiB → TBGibibyte to TerabyteView detailsGiB → TiBGibibyte to TebibyteView detailsTB → BTerabyte to ByteView detailsTB → KBTerabyte to KilobyteView detailsTB → KiBTerabyte to KibibyteView detailsTB → MBTerabyte to MegabyteView detailsTB → MiBTerabyte to MebibyteView detailsTB → GBTerabyte to GigabyteView detailsTB → GiBTerabyte to GibibyteView detailsTB → TiBTerabyte to TebibyteView detailsTiB → BTebibyte to ByteView detailsTiB → KBTebibyte to KilobyteView detailsTiB → KiBTebibyte to KibibyteView detailsTiB → MBTebibyte to MegabyteView detailsTiB → MiBTebibyte to MebibyteView detailsTiB → GBTebibyte to GigabyteView detailsTiB → GiBTebibyte to GibibyteView detailsTiB → TBTebibyte to TerabyteView details

    Unit breakdown

    Every unit below references the SI base value so you can compare readings quickly.

    UnitSymbol1 unit in BNotes
    ByteBReference unit—
    KilobyteKB1 KB = 1K BAlso written kB
    KibibyteKiB1 KiB = 1.02K B—
    MegabyteMB1 MB = 1.0000×10^+6 B—
    MebibyteMiB1 MiB = 1.0486×10^+6 B—
    GigabyteGB1 GB = 1.0000×10^+9 B—
    GibibyteGiB1 GiB = 1.0737×10^+9 B—
    TerabyteTB1 TB = 1.0000×10^+12 B—
    TebibyteTiB1 TiB = 1.0995×10^+12 B—

    KB or KiB? Decimal and binary storage units

    The same number of bytes can be written as 1 TB or as 931.32 GiB. Storage is counted in two systems: one goes up by 1,000 at each prefix, the other by 1,024.

    Decimal (SI): steps of 1,000

    KB · MB · GB · TB

    Kilo means 1,000 here, exactly as in kilometer or kilogram. Makers of hard drives, SSDs, USB sticks and memory cards label capacity this way, and macOS (since OS X 10.6 Snow Leopard) and iOS (since iOS 11) show file and disk sizes the same way.

    Binary (IEC): steps of 1,024

    KiB · MiB · GiB · TiB

    Kibi means 2¹⁰ = 1,024. RAM is sized this way, and Windows File Explorer and the df -h command count this way too, although Windows still labels the results KB, MB and GB.

    DecimalBinary
    1 kilobyte (KB)1,000 bytes1 kibibyte (KiB)1,024 bytes2.40% larger
    1 megabyte (MB)1,000,000 bytes1 mebibyte (MiB)1,048,576 bytes4.86% larger
    1 gigabyte (GB)1,000,000,000 bytes1 gibibyte (GiB)1,073,741,824 bytes7.37% larger
    1 terabyte (TB)1,000,000,000,000 bytes1 tebibyte (TiB)1,099,511,627,776 bytes9.95% larger

    Why 1,024?

    Computers address memory in binary. Every extra address bit doubles the number of locations that can be reached, so memory sizes come in powers of two. 2¹⁰ = 1,024 is close to 1,000, so early computing borrowed “kilo” for it, and “megabyte” ended up meaning 1,000,000 bytes to some people and 1,048,576 to others.

    In December 1998 the International Electrotechnical Commission (IEC) approved separate prefixes for the binary meaning: kibi (Ki), mebi (Mi), gibi (Gi), tebi (Ti) and larger ones such as pebi (Pi). Each name blends the decimal prefix with “binary”, so kilo + binary gives kibi. With them, KB keeps its SI meaning of 1,000 bytes and KiB always means 1,024. NIST and IEC 80000-13 use this system, but many programs still use the older labels, so check which system a number is in.

    “My 2 TB drive only shows 1.82 TB”

    A drive sold as 2 TB holds about 2,000,000,000,000 bytes. Divide that by 1,024 four times and you get 1.82 TiB, which Windows displays as “1.82 TB”. A Mac shows the same drive as 2 TB. No space is missing: both numbers count the same bytes. The gap grows at every prefix, from 2.4% at kilo to almost 10% at tera, which is why a 1 TB drive shows up as about 931 GB in Windows. Formatting and the operating system then take a little of the space as well.

    Quick rules

    • Drive and SSD packaging, and file sizes on a Mac or iPhone: decimal (KB, MB, GB, TB).
    • RAM, Windows File Explorer and df -h: binary, even when the label says GB. 16 GB of RAM is 16 GiB, or 17,179,869,184 bytes. (df -H shows decimal sizes instead.)
    • Comparing a drive label with what your computer reports? Convert both to the same system first, for example TB to GiB or GB to GiB.
    • Small files show the gap too: a 1,500-byte file is 1.5 KB or 1.46 KiB.

    Popular conversions

    These presets mirror the quick actions available inside the SwapUnits converter.

    Launch converter
    ConversionExampleReference pageWhy it matters
    Gigabytes to Megabytes1 GB = 1K MBOpenIdeal for quick checks inside the live converter.
    Terabytes to Gigabytes1 TB = 1K GBOpenIdeal for quick checks inside the live converter.
    Terabytes to Gibibytes1 TB = 931.323 GiBOpenIdeal for quick checks inside the live converter.

    Frequently asked questions

    Why does my computer show less space than advertised?

    Manufacturers use decimal units, so a 1 TB drive equals 1,000,000,000,000 bytes. Operating systems often divide by 1,073,741,824 to report gibibytes (GiB), which yields a smaller number.

    What is the difference between MB and MiB?

    MB (megabyte) equals 1,000,000 bytes. MiB (mebibyte) equals 1,048,576 bytes. Software developers prefer MiB to avoid ambiguity in memory size calculations.

    How many gigabytes are in a terabyte?

    In decimal terms, 1 TB equals 1,000 GB. In binary terms, 1 TiB equals 1,024 GiB. Check which prefix your tool displays before converting.

    Ready to convert right now?

    Head back to the SwapUnits converter to crunch numbers instantly and save your favorite presets.

    Open the converter