Blog
Unit converters

Data units converter

Enter a value, choose a source and target unit, and the converter recalculates data size between any pair of seven units: bits, bytes, kilobytes, megabytes, gigabytes, terabytes and petabytes, using the binary base of 1024 (as your operating system reports file sizes).

Your data never leaves this device

Result

Result

This page has no server side at all. The table you paste is parsed by JavaScript inside your own browser, the chart is drawn on a canvas element on your machine, and the export file is assembled locally. Nothing is uploaded, stored or written to any log. You can disconnect from the network after the page has loaded and everything will still work — which is the simplest way to verify the claim yourself.

Facts and limits of this method

Base unit Byte — all other units convert through it
Power base 1024 (binary, as shown by your OS's file manager), not 1000
1 byte 8 bits
1 KB / 1 MB / 1 GB / 1 TB 1024 B / 1024² B / 1024³ B / 1024⁴ B respectively
Total units 7 — bit, byte, KB, MB, GB, TB, PB

When it misleads you

How it is calculated

Each of the seven units has a preset conversion factor to bytes — for example, 1 KB = 1024 bytes, 1 MB = 1024² = 1,048,576 bytes.

The entered value is multiplied by the factor of the selected "from" unit, giving size in bytes.

The size in bytes is divided by the factor of the "to" unit, giving the result in the target unit.

The result is rounded to the chosen number of decimal places and updates instantly whenever the value, units or precision change.

Questions and answers

Why does a 1 TB drive show less in File Explorer?

Because manufacturers state capacity using base 1000 (1 TB = 1,000,000,000,000 bytes), while the OS displays it using base 1024 — so a 1 TB label ends up showing as about 931 GB in the system. This converter uses the system's (1024) base.

How many bits are in a byte?

8 bits — the standard ratio used in this converter.

Is it correct to call base-1024 units "kilobytes"?

Formally, base 1024 has its own names — kibibyte, mebibyte, and so on — but in everyday use (including Windows and most software interfaces) they're still called kilobytes and megabytes; this converter follows that practice.

Is my data sent anywhere?

No, the whole calculation runs in your browser.

Related tools

All tools