Byte Converter
Convert any data size between bytes, KB, MB, GB and TB. Enter a value, pick the from and to units, and choose decimal (1000) or binary (1024); the tool returns the result plus the total in raw bytes and bits.
Example: with Value 1 · From Gigabytes (GB) · To Megabytes (MB) · Convention Decimal (1000) → Result: 1,000 MB.
- In raw bytes1,000,000,000 bytes (decimal, 1000)
- In bits8,000,000,000 bits
Computed by the calculator below using its default values. Change any input to see your own numbers.
Each step up (B to KB to MB to GB to TB) multiplies by 1000 in decimal or 1024 in binary. Bits are 8 times the byte count, since one byte is 8 bits.
One ladder, two step sizes
Data sizes climb a ladder: bytes, kilobytes, megabytes, gigabytes, terabytes. Each rung is a fixed multiple of the one below, and the only question is whether that multiple is 1000 (decimal) or 1024 (binary). Converting between any two units is a single multiply or divide by the base raised to the number of steps between them, which is exactly what this tool does.
Seeing the raw byte and bit totals helps sanity-check the result and bridges to other fields. Storage and files are counted in bytes; network speeds and low-level protocols are counted in bits, at 8 bits per byte. So 1 GB is one billion bytes in decimal, and eight billion bits, which is why a gigabit and a gigabyte are far from the same thing.
How it’s calculated
Units map to powers: B=0, KB=1, MB=2, GB=3, TB=4. The result is value × base^(fromPower − toPower), and the raw byte total is value × base^(fromPower), where base is 1000 (decimal) or 1024 (binary). Bits are the byte total × 8.
Binary mode uses 1024-based steps (properly KiB, MiB, GiB, TiB) though labeled with the familiar KB, MB, GB, TB. Decimal mode follows the SI standard used by storage vendors.
What each unit equals in bytes
| Unit | Bytes (decimal) | Bytes (binary) |
|---|---|---|
| 1 KB | 1,000 | 1,024 |
| 1 MB | 1,000,000 | 1,048,576 |
| 1 GB | 1,000,000,000 | 1,073,741,824 |
| 1 TB | 1,000,000,000,000 | 1,099,511,627,776 |
Decimal uses powers of 1000; binary (KiB, MiB, GiB, TiB) uses powers of 1024.
Common mistakes
- Mixing conventions, for example converting up in 1024 but labeling the result as decimal.
- Confusing bytes (B) with bits (b); the tool shows both, and they differ by 8.
- Assuming a drive advertised in decimal GB will match a binary reading in an OS.
- Skipping a rung, such as treating 1 TB as 1000 KB rather than 1000 GB.
Frequently asked questions
How do I convert between bytes, KB, MB, GB and TB?
Multiply or divide by the base for each step: 1000 in decimal or 1024 in binary. Going up a unit divides the number; going down multiplies it.
What is the difference between decimal and binary sizes?
Decimal uses 1000 per step (KB, MB, GB), matching storage and SI. Binary uses 1024 per step (KiB, MiB, GiB), matching memory and most operating systems.
How many bytes are in a gigabyte?
One billion (1,000,000,000) in decimal, or 1,073,741,824 in binary. This tool shows the exact byte total for whichever convention you pick.
Why show the total in bits?
Bits matter for network speeds and encoding, where one byte is 8 bits. Seeing bits alongside bytes makes it easy to line up file sizes with transfer rates.