File Size Converter
Convert between bytes, KB, MB, GB, TB, and PB
Common File Sizes
Report a Problem
Found a bug or have a suggestion? Help us improve this tool.
What is this tool?
File size unit converter quickly transforms between bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes. Supports both SI (decimal, 1000-based) and IEC (binary, 1024-based) units (KB/MB/GB vs KiB/MiB/GiB). Essential for developers, IT professionals, and anyone working with digital storage who needs accurate unit conversions.
How to use
- 1
Enter value
Type the number you want to convert.
- 2
Select units
Choose source and target units (B/KB/MB/GB/TB/PB).
- 3
Get result
See the converted value in all common units simultaneously.
Frequently Asked Questions
What is the difference between KB and KiB?
KB (kilobyte) = 1000 bytes (SI decimal), while KiB (kibibyte) = 1024 bytes (IEC binary). Storage manufacturers use KB/MB/GB (1000-based) making drives seem larger, while operating systems use KiB/MiB/GiB (1024-based). A "500 GB" drive is actually about 465 GiB.
MB vs MiB?
MB is 1 million bytes. MiB is 1.05 million. Difference is 4.86 percent.
Can I use this in production?
This tool is designed for development and testing. For production use established libraries with security audits.
How do I convert a file size to MB or GB?
Divide by 1,024 per step (binary): bytes โ KB โ MB โ GB โ TB. For decimal (SI) values as shown on most drives, divide by 1,000 instead. 1 MiB = 1,048,576 bytes; 1 MB = 1,000,000 bytes.
Related tools
- Image CompressorCompress images in your browser. No upload needed. Adjust quality freely.
- Image ResizerResize images with aspect ratio control. Export as PNG, JPEG, or WebP.
- Image ConverterConvert images between PNG, JPEG, and WebP formats directly in your browser. No upload needed.
- Image Info ViewerView detailed image metadata โ dimensions, file size, format, and EXIF data like camera, location, and exposure. No upload needed.