Toolivaro

Free Data Size Converter

Convert between bits and bytes — KB, MB, GB, TB, PB — with decimal (SI) precision, exact arithmetic, fully local.

The data size converter translates storage quantities between the units real products use: Bit, Byte, KB, MB, GB, TB, and PB. Type a value, pick the source and target units, and the tool returns the exact equivalent — 5 GB is 5000 MB, 1.5 TB is 1500000000 KB, 1 byte is 8 bits. The converter uses the decimal (SI) convention throughout: 1 KB equals 1,000 bytes, 1 MB equals 1,000 KB, and so on. That is the convention hard drives and network equipment are rated in — a "1 TB" drive is 1 trillion bytes — and it is the one that matches the prefixes printed on the box. The alternative binary convention (1 KiB = 1,024 bytes) exists and the tool does not silently mix the two: the page says clearly which convention it uses, so a converted number is never ambiguous after the fact. Arithmetic runs on exact decimal math rather than floating point, so conversions like 1048576 bytes to KB come out as precisely 1048.576, never a rounded guess. Values may be fractional, and results are shown with up to ten significant digits — enough for honest precision without trailing-zero noise. Everything is computed in your browser; nothing you enter is uploaded, logged, or stored. Use this tool when a storage quota is quoted in TB and your code measures in bytes, when you are estimating bandwidth (megabits versus megabytes is a classic eight-fold error), or when you need to communicate a size in the unit your audience actually reads.

Processed locally in your browser

Any size, including fractional values like 1.5.

How is the result calculated?

A quota quoted in GB, measured in bytes

Your hosting plan advertises 5 GB of storage but the API reports usage in bytes. Converting 5 GB to bytes: 5 × 1000³ = 5,000,000,000 bytes — the decimal convention, matching the provider’s own figure. The converter gives the same number in one step.

Example input and output
Input Value
value 5
fromUnit GB
toUnit Byte
Result 5000000000

What is the formula and its assumptions?

Decimal (SI) unit conversion

converted = value × 1000^(fromExp − toExp)

Formula terms
Symbol Meaning
fromExp, toExp unit exponents: Bit = −3, Byte = 0, KB = 1, MB = 2, GB = 3, TB = 4, PB = 5 (relative to bytes)
1000 the decimal factor between adjacent units (1 KB = 1,000 bytes)

The Bit exponent is −3 because 1 byte = 8 bits (2³). All arithmetic is exact decimal, never floating point.

What are the most common mistakes?

  • Mixing conventions: assuming 1 MB = 1,024 KB when a vendor’s figure uses decimal — the converter is decimal (SI) throughout and says so.
  • Confusing bits and bytes when estimating bandwidth — 100 Mbps is 12.5 MB/s, an eight-fold difference the converter makes explicit.
  • Expecting floating-point conversion of large values — this tool uses exact decimal arithmetic, so 1048576 bytes to KB is precisely 1048.576.

What are the assumptions and limitations?

  • Decimal (SI) convention only: binary units (KiB, MiB, GiB) are out of scope and clearly labeled as such.
  • Results are shown with up to 10 significant digits; values needing more precision are rare but would be truncated at display time.
  • The converter handles the seven standard units up to PB — exabytes and beyond are not supported.

Where do the numbers come from?

Last reviewed August 11, 2026 · Version 1.0.0 · Toolivaro does not guarantee external content.

Frequently asked questions

Decimal or binary — which does the converter use?

Decimal (SI): 1 KB = 1,000 bytes, 1 MB = 1,000 KB. This is the convention used by hard-drive and network vendors — a 1 TB drive is 1 trillion bytes. The binary convention (1 KiB = 1,024 bytes) is a different system and this tool never mixes the two.

Why does 1 GB convert to 1000 MB and not 1024 MB?

Because the tool follows the SI prefixes, where kilo means 1000. The 1024-based numbers are officially called KiB, MiB, and GiB. Many tools mix conventions silently; this one states its convention on the page so your result is never ambiguous.

How many bytes are in a bit?

Eight bits make one byte. Converting from Bit to Byte divides by 8 — 1 Bit is 0.125 Byte — and converting from Byte to Bit multiplies by 8, so 1 Byte is 8 bits.

Can I convert fractional sizes like 1.5 GB?

Yes. Values may be fractional and are converted with exact decimal arithmetic — 1.5 GB is exactly 1500 MB, not a rounded approximation.

Part of Format and conversion tools

Found a mistake or have a correction? Report it — we review every correction.

Was this helpful?

Reviewed by the Toolivaro editorial team per our methodology Methodology · Editorial policy