Bytes to KB Calculator (KB and KiB)
- Kibibytes (binary, 1 KiB = 1,024 B)
- KiB
- Result
- Megabytes (decimal)
- MB
- Result
- Bits
- bits
- Result
This calculator converts a number of bytes into kilobytes. Because two definitions are in use, it shows both: decimal kilobytes (1 KB = 1,000 bytes, used by drive makers and macOS) and binary kibibytes (1 KiB = 1,024 bytes, what Windows labels “KB”).
Formula
KB = bytes ÷ 1,000; KiB = bytes ÷ 1,024; MB = bytes ÷ 1,000,000; bits = bytes × 8. The SI prefixes kilo and mega mean 10³ and 10⁶; the binary prefixes kibi and mebi (IEC 80000-13) mean 2¹⁰ and 2²⁰.
Worked Example
799 bytes:
- 799 ÷ 1,000 = 0.799 KB
- 799 ÷ 1,024 = 0.780 KiB
- 799 × 8 = 6,392 bits
So 799 bytes is a little under 1 KB in either system.
Limits and common mistakes
- File managers round: Windows shows 799 bytes as “1 KB” because it rounds up to whole kibibytes.
- Network speeds are in bits per second; divide by 8 to compare with file sizes in bytes.
Frequently Asked Questions
Is 1 KB 1,000 or 1,024 bytes?
Officially 1,000 bytes. 1,024 bytes is a kibibyte (KiB), although Windows and many older texts call it a KB.
How many bytes in a MB?
1,000,000 bytes (decimal); a mebibyte is 1,048,576 bytes.
Formula used
in b | Bytes | B | 799 | 0 out kb | Kilobytes (decimal, 1 KB = 1,000 B) | KB | b / 1000 | 3 out kib | Kibibytes (binary, 1 KiB = 1,024 B) | KiB | b / 1024 | 3 out mb | Megabytes (decimal) | MB | b / 1000000 | 6 out bits | Bits | bits | b * 8 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.