Free File Size Unit Converter

    File Size Converter

    Convert between bytes, KB, MB, GB, TB, and PB instantly. Perfect for comparing storage capacities, file sizes, and planning your storage needs.

    —

    How File Size Conversion Works

    How File Size Conversion Works

    All digital storage is built on binary (base-2) math. Each step up multiplies by 1024: 1024 bytes = 1 KB, 1024 KB = 1 MB, 1024 MB = 1 GB, 1024 GB = 1 TB. The confusion comes from the fact that storage manufacturers use decimal steps of 1000 while Windows and many programs use binary steps of 1024.

    When You Need a File Size Converter

    Use this converter when buying storage (comparing the advertised capacity with the usable space), planning cloud backups (how many files will fit), estimating download sizes, checking email attachment limits, or understanding why your computer reports less space than the box promised.

    The Conversion Formula

    The converter first turns your value into bytes, then divides by the size of the target unit. Each unit is a power of 1024, so moving one step up divides by 1024 and moving one step down multiplies by 1024.

    result = value × 1024^(source level) ÷ 1024^(target level)

    Levels: B = 0, KB = 1, MB = 2, GB = 3, TB = 4, PB = 5. Example: 3 GB to MB is one step down, so 3 × 1024 = 3072 MB. If you need the decimal (manufacturer) value instead, replace 1024 with 1000 in the same formula.

    Worked Examples

    Photos on a 64 GB memory card

    A camera produces JPEG files of about 5 MB. On paper, 64 GB × 1024 = 65,536 MB, or about 13,100 photos. But the card is sold in decimal units: 64,000,000,000 bytes ÷ 1024² ≈ 61,035 MB, and formatting takes a little more. Expect roughly 12,000 photos, not 13,000.

    Why a 1 TB drive shows 931 GB

    The drive holds 1,000,000,000,000 bytes. Windows divides by 1024³ (1,073,741,824) to display gigabytes: 1,000,000,000,000 ÷ 1,073,741,824 ≈ 931.3 GB. No space is missing: it is the same number of bytes expressed in a different unit.

    Fitting PDFs under a 25 MB email limit

    Many mail services cap attachments at 25 MB. 25 × 1024 = 25,600 KB, so in theory you could send 73 PDFs of 350 KB. In practice attachments are Base64-encoded, which adds about 33%, so plan for around 50 files, or compress them into a ZIP archive first.

    Quick Reference Table

    UnitEquivalentExample
    1 KB1,024 bytesSmall text file
    1 MB1,024 KBMP3 song (1 min)
    1 GB1,024 MBHD movie
    1 TB1,024 GBGame library
    1 PB1,024 TBData center storage

    Advertised Capacity vs Space Shown in Windows

    The figures below are pure unit conversions (decimal to binary), before formatting and before any space used by the operating system or recovery partitions.

    Advertised (decimal)BytesShown in Windows (binary)
    128 GB128,000,000,000119.2 GB
    256 GB256,000,000,000238.4 GB
    512 GB512,000,000,000476.8 GB
    1 TB1,000,000,000,000931.3 GB
    2 TB2,000,000,000,0001.82 TB
    4 TB4,000,000,000,0003.64 TB

    Practical Tips for Working With File Sizes

    • Check which convention a number uses before comparing it: drive boxes and macOS are decimal, Windows is binary.
    • Do not confuse bits and bytes. Divide an internet speed in Mbps by 8 to get megabytes per second.
    • Keep 10–20% of an SSD free: drives slow down and wear faster when they are almost full.
    • USB sticks formatted in FAT32 cannot store a single file larger than 4 GB. Reformat them in exFAT for large videos or disk images.
    • When comparing cloud plans, convert everything to the same unit and remember that your backup will grow over time.
    • Compressed formats (ZIP, JPEG, MP4) are already small; zipping them again rarely saves more than a few percent.

    Frequently Asked Questions About File Sizes

    What is the difference between KB, MB, GB and TB?

    Each unit is 1024 times larger than the previous one: 1 KB = 1024 bytes, 1 MB = 1024 KB, 1 GB = 1024 MB and 1 TB = 1024 GB. These are the binary (base-2) definitions used by Windows and by RAM manufacturers. Storage manufacturers use decimal definitions (1000 instead of 1024), which is why a “1 TB” hard drive shows about 931 GB in Windows.

    Is 1 GB equal to 1000 MB or 1024 MB?

    It depends on who is counting. Windows, RAM sizes and most programming tools use 1 GB = 1024 MB (binary). Drive manufacturers, network speeds and macOS/iOS (since 2009) use 1 GB = 1000 MB (decimal). That is why the same 256 GB SSD appears as roughly 238 GB in Windows but as 256 GB on a Mac.

    How large is a typical photo, video or document?

    Typical file sizes: smartphone photo (JPEG or HEIC) 2–8 MB; RAW photo 20–45 MB; one minute of 1080p video 100–200 MB; one minute of 4K video 350–600 MB; Word document 50–500 KB; PDF 100 KB–50 MB; MP3 song 3–10 MB; lossless FLAC song 25–50 MB.

    What is a petabyte (PB) and when is it used?

    1 PB = 1024 TB, or roughly one million GB. Petabytes are used to describe the storage of data centers, cloud providers, video platforms and scientific projects. To give an idea of scale, a petabyte of MP3 music at about 1 MB per minute would take nearly 2000 years to play back to back.

    What is the difference between MB and Mb?

    An uppercase B means bytes and a lowercase b means bits, and 1 byte = 8 bits. File sizes are given in megabytes (MB) while internet speeds are given in megabits per second (Mbps). A 100 Mbps connection therefore downloads at most about 12.5 MB per second, before network overhead.

    What do KiB, MiB and GiB mean?

    They are the unambiguous binary units defined by the IEC in 1998: 1 KiB (kibibyte) = 1024 bytes, 1 MiB = 1024 KiB and 1 GiB = 1024 MiB. With this naming, kB, MB and GB are strictly decimal (1000-based). Linux tools and some backup software display these units; Windows shows binary values but labels them KB, MB and GB.