Skip to content
Media

File Size Converter

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

filesizeconvertbyteskb
Loading tool…

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.

File Size Converter 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 the File Size Converter

  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.

Bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes. The unit dropdown shows both the abbreviation and the full name for each.

Drive manufacturers count in decimal (1000-based) units, but the converter — like your OS — uses 1024-based units. Entering 1 TB here yields 1,099,511,627,776 bytes, which rounds to about 931 binary gigabytes.

Yes. Negative values are converted mathematically and flagged with an amber warning, since they are unusual for real file sizes but valid for deltas and calculations.

A formatted string that picks the largest unit under 1024, so 1536 bytes becomes "1.5 KB" and 5,000,000 bytes becomes "4.77 MB". It even keeps the sign for negatives.

The preset chips load their value and unit into the main inputs, which you can then modify freely. They are shortcuts, not locked configurations.

Explore more media tools

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

Related tools

Did this tool help?

Anonymous — one tap, no sign-up.