inyourbrowser.com

File size converter

Convert any file size between bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes. Shows all units simultaneously. Toggle between decimal (SI) and binary (IEC) standards.

Standard:
UNITVALUE
B1,000,000
KB1,000
MB← input1
GB0.001
TB< 0.001
PB< 0.001

Decimal (SI): 1 KB = 1,000 B · 1 MB = 1,000,000 B · used by storage manufacturers

How it works

All unit conversions use pure JavaScript arithmetic. No library required. Decimal (SI) conversions divide by powers of 1000; binary (IEC) conversions divide by powers of 1024. Results update instantly as you type.

Processing runs in your browser

All calculations happen locally in the page. Our servers are not involved at any point.

Related operations

For converting between binary, hex, and decimal values, try the number base converter. To convert between length, mass, and other units, use the unit converter. For computing file hashes alongside size checks, see the hash generator.

Frequently asked questions

What units does this converter support?

Decimal: B, KB, MB, GB, TB, PB. Binary: B, KiB, MiB, GiB, TiB, PiB. Select a unit from the dropdown and enter a value to see all conversions at once.

What is a petabyte?

1 PB (petabyte, decimal) = 1,000,000,000,000,000 bytes = 1000 TB. 1 PiB (pebibyte, binary) = 2^50 bytes ≈ 1.126 PB. Petabytes are used to describe large data centres and cloud storage.

How do I convert GB to MB?

Multiply by 1000 (decimal) or 1024 (binary). For example, 2.5 GB = 2500 MB (decimal) or 2560 MiB (binary).

Related tools

Unit converter
Convert length, weight, temperature, speed and volume between metric and imperial. Instant results.
Number base converter
Convert numbers between binary, octal, decimal, and hex. All bases shown at once.
Hash generator
Generate SHA-256, SHA-512, SHA-1, and MD5 hashes. Verify file checksums locally.