Skip to content
Media

File Size Converter

Convert between bytes, KB, MB, GB, TB, and PB (1024-base).

filesizeconvertbyteskb
Loading tool…

Recommended tools

Affiliate links — we may earn a commission if you sign up.

About the File Size Converter

The File Size Converter turns any value in bytes, kilobytes, megabytes, gigabytes, terabytes, or petabytes into its equivalent in every other unit — instantly and with binary (1024) math. Enter a value, pick the source unit, and the tool fills a table with all six conversions, plus two summary stats: the exact byte count and a human-readable form that automatically picks the most sensible unit for display. Preset chips for familiar media — a 1.44 MB floppy, a 700 MB CD, a 4.7 GB DVD, a 25 GB Blu-ray, and a 1 TB hard drive — load realistic starting points in one click. Negative values are handled gracefully with an amber warning, and the human-readable stat even preserves the sign, so the converter doubles as a sanity check for odd inputs. Anyone wrangling upload limits, storage specs, or download math has hit the classic 1000-versus-1024 confusion; this KB to MB and GB calculator resolves it by always using the binary convention operating systems and file managers actually report. For developers setting up file upload validation, comparing cloud storage tiers, or explaining why a "1 TB" drive shows 931 GB, the tool gives the answer with a single glance.

Hand-written guide

Examples

Input
Value 1536, Unit B (the default).
Output
1.5 KB, 0.0014648438 MB, 1.4305114746e-6 GB in the conversions table; human-readable reads "1.5 KB".
Note: 1536 bytes is exactly 1.5 KiB, a common allocation-unit size.
Input
Value 4.7, Unit GB, or a click on the "4.7 GB DVD" preset.
Output
In bytes 5,046,586,572.8 and a table showing 4.7 GB, 0.0045898438 TB, and 4,812.8 MB.
Note: The byte stat reveals why DVDs advertise decimal gigabytes that filesystems never quite match.
Input
Value 1, Unit TB with the "1 TB HDD" preset.
Output
1,099,511,627,776 bytes, 1024 GB, 1048576 MB — the classic discrepancy behind the "missing" 69 GB on a drive.
Note: Binary conversion explains the marketing-vs-actual capacity gap in one table.

How to use

  1. 1

    Type a number into the "Value" field (1536 is pre-filled).

  2. 2

    Choose the source unit in the "Unit" dropdown — B, KB, MB, GB, TB, or PB.

  3. 3

    Optionally tap a preset chip like "700 MB CD" to load a realistic value.

  4. 4

    Read the Input value, In bytes, Human-readable, and Status stats.

  5. 5

    Scroll the "All conversions" table for the equivalent in every unit.

Common use cases

  • Converting an upload limit of 2 MB into bytes for a form validation rule.
  • Checking how many 4.7 GB DVD-equivalents a 25 GB Blu-ray image holds.
  • Explaining the decimal-versus-binary capacity gap on a new hard drive.
  • Estimating how many photos fit in a 1 TB backup plan.
  • Normalizing file sizes logged in different units by a monitoring script.
  • Teaching students the difference between KB and KiB using the presets.

Best practices

  • Remember the tool always uses 1024-based math, matching what file managers display.
  • Use the human-readable stat when presenting sizes to end users — it picks the best unit.
  • Check the Status stat for Zero or Negative results before trusting odd inputs.
  • Use preset chips as anchors instead of re-typing common media sizes.
  • For decimal marketing numbers, treat the byte count as the source of truth.

Tips

  • Tap a preset chip to pre-fill both the value and unit at once.
  • The In bytes stat is the exact figure to copy into code or configs.
  • Watch the Status stat turn amber when you enter a negative number.
  • Use the table row badge to spot which unit matches your input.

Frequently asked questions

It uses the binary base of 1024 between every step, matching how operating systems report file sizes. One kilobyte here equals 1024 bytes, not the decimal 1000 used in marketing.

Explore more media tools

Browse the full collection of media tools on the hub, or jump back to all categories.