Data Size Converter
Convert between bytes, KB, MB, GB, TB, PB and bits in decimal or binary mode.
Data Size Converter — Convert a digital storage size into every common unit at once: bits, bytes, KB, MB, GB, TB and PB. Switch between decimal (1000-based, KB/MB/GB) and binary (1024-based, KiB/MiB/GiB) so you can reconcile the numbers your operating system and your drive vendor disagree on. Everything is computed instantly in your browser, so the values you type never leave your device.
What is Data Size Converter?
The Data Size Converter is a free online tool that turns one digital storage amount into a full grid of equivalent units: bits, bytes, KB, MB, GB, TB and PB. Developers, sysadmins, network engineers, and anyone comparing file sizes or bandwidth use it to see, for example, how many megabytes a number of bytes is, or how a vendor's gigabytes line up with the gibibytes a disk actually reports. You type a value, choose its source unit, and pick a base: decimal uses powers of 1000 (KB, MB, GB) while binary uses powers of 1024 (KiB, MiB, GiB). The result for every unit appears at once in read-only fields, formatted to your locale, and updates the moment you change the value, the unit, or the mode.
How to use Data Size Converter
- Type the amount you want to convert in the value field.
- Choose the source unit from the dropdown (bit, B, KB/KiB, MB/MiB, GB/GiB, TB/TiB or PB/PiB).
- Open Settings and pick Decimal (1000) or Binary (1024) to control how the units are scaled.
- Read the equivalent value for every unit in the read-only output grid.
- Adjust the value, source unit, or mode at any time; all outputs recalculate instantly.
Examples
Megabytes to bytes (decimal)
Input
1 MB, decimal mode
Output
B = 1,000,000
Mebibytes vs megabytes for the same bytes
Input
1,048,576 B, binary mode
Output
MiB = 1, MB stays 1.048576 in decimal
Bytes to bits
Input
1 B
Output
bit = 8
Frequently asked questions
- What is the difference between decimal and binary mode?
- Decimal mode scales units by powers of 1000 (1 KB = 1000 B, 1 MB = 1000 KB), the convention storage vendors use. Binary mode scales by powers of 1024 (1 KiB = 1024 B, 1 MiB = 1024 KiB), which matches how most operating systems report memory and disk usage.
- Why does my operating system show a smaller size than the drive label?
- Drives are usually advertised in decimal units (GB = 1,000,000,000 bytes) while many operating systems display binary units (GiB = 1,073,741,824 bytes). Switching modes here lets you see both numbers for the same byte count.
- How are bits handled?
- One byte equals 8 bits, so the bit field is always the byte value times eight. This is handy for converting between storage sizes and network or bandwidth figures that are quoted in bits.
- What happens if I enter text or leave the field empty?
- If the input is not a valid finite number, every output field simply shows a dash (—) until you enter a valid numeric value.
- Is my data uploaded anywhere?
- No. All conversions run 100% client-side in your browser with no upload and no server communication, so the values you type never leave your device.
Related tools
Aspect Ratio Calculator
Enter a width or height with a target aspect ratio and instantly get the matching dimension plus the simplified ratio.
Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal.
Base64 File Converter
Encode any file or image to a Base64 data URI and decode a data URI back into a downloadable file.
BMI Calculator
Calculate your Body Mass Index from height and weight in metric or imperial units and see the matching WHO weight category instantly.