File Size Converter
Convert between B, KB, MB, GB.
About this tool
Enter a size, choose the unit it is in and the unit you want. The converter uses binary units, where each step is a factor of 1024.
How to use
How it works
The value is converted to bytes using 1 KB = 1024 bytes, 1 MB = 1024 KB and 1 GB = 1024 MB, then divided by the target unit. This is how operating systems usually report file sizes. Hard-drive and network vendors use 1000-based units, so a 500 GB drive shows as about 465 GB on a computer. Results are shown to four decimal places.
bytes = value × 1024^n result = bytes ÷ 1024^m
Worked example
KB to MB
- Input
- 1536 KB to MB
- Output
- 1.5000 MB
- Walkthrough
- 1536 ÷ 1024 = 1.5.
Limitations
- Four units only; there is no TB or PB.
- Uses 1024-based units; it does not offer 1000-based (decimal) units.
- Result is limited to four decimal places.
Questions
How many MB is 1 GB?
How many KB is 1.5 MB?
Why is my 500 GB drive 465 GB?
Does it handle TB?
Features
- Bytes, KB, MB, GB
- 1024-based
- Runs in your browser
Guides
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
PDF, What is it FOR?
Computerphile
File tools often sit next to document packet workflows.
Watch on YouTubeInspect Network Activity - Chrome DevTools 101
Chrome for Developers
Downloading and uploading files is a network workflow.
Watch on YouTube
- RFC 1952 — GZIP file format
IETF
GZIP format notes for compress/decompress utilities.
- Blob
MDN
How browsers represent file bytes in local tools.