Numbers, Bitwise & Units

Data size converterKeep units unambiguous

Enter a size or one size per line. Compare decimal and binary units together.

Data size converter

Input

Your input is processed in this browser and is not sent to a server.

Results

Each input will show bit/B, decimal and binary equivalents.

Options

One nonnegative decimal per line, optionally followed by a unit. A suffix overrides the default. Use a dot, no digit grouping.

1 B = 8 bit · 1 KB = 1000 B · 1 KiB = 1024 B. Aliases: b, byte, bytes, kB.

≈ rounded; < below the display step. JSON also preserves the exact quantity as a fraction in bits.

Up to 500 nonempty lines, 100 digits per number, 100000 characters. Any invalid line stops the batch.

Enter input or choose an example to begin.

A data size converter is useful when a storage quota, a file listing and a disk label use different units. Start with the actual byte count when you have it; a number labelled GB alone may hide the convention used by the original application.

A bytes to KB calculation and a bits to bytes calculation need different factors. Here the unit stays attached to each input, so a list containing 1 GB and 1 GiB remains two different quantities throughout the report.

Why use this data size converter?

Compare both scales without changing the input

The decimal and binary columns answer the KB vs KiB question directly. With 1024 B, you get 1.024 KB and exactly 1 KiB. The number of bytes stays constant; only the unit used to express it changes. You can compare a disk specification with a binary quota without switching a hidden base setting.

One stored quantity branches into two differently spaced measurement scales.

Keep every line’s unit

This data size converter reads the suffix on each line instead of stripping it away. Paste 1 GB, 1 GiB and 8 bit on separate lines: each produces its own twelve-unit result. The original line number travels with the output, making mixed file inventories easier to check.

Three independent input rows pass through conversion into three aligned result rows.

Check the unit before trusting the number

01

Set a default only for bare numbers

The input unit selector applies to lines without a suffix. A line ending in MiB keeps that unit even when the selector says B. Add a bare number to compare it with an explicitly labelled line.

02

Choose how much detail to display

Six decimal places is the default. Increase it for tiny quantities; ≈ marks a rounded result and < marks a positive value below the displayed resolution. The exact fraction remains in the JSON report.

03

Review a batch before exporting

Blank lines do not become records. Expand a result row to see all twelve units, and load another 50 records if needed. In manual mode, Ctrl/Cmd+Enter refreshes the results before copying.

One quantity, twelve useful representations

Separate storage scales

Basic bit and B values sit beside decimal KB through PB and binary KiB through PiB. Every source can be converted into every listed unit. Decimal steps are 1000; binary steps are 1024.

Precision beyond floating-point integers

Large byte counts such as 9007199254740993 retain their last digit. Fractional amounts are also allowed: 1 bit becomes 0.125 B, without first rounding up to a whole byte. Only the displayed decimal is rounded.

Traceable batch reports

Up to 500 nonempty rows are processed together. TXT includes units and approximation marks; JSON includes original lines, settings, every result and the exact numerator/denominator in bits as strings. Export always includes the full batch.

Accepted notation and deliberate limits

Use explicit, case-sensitive symbols
Use bit, B, KB–PB or KiB–PiB. The aliases b, byte, bytes and kB are accepted. Lowercase mb is rejected; a suffix is never discarded. KB always means 1000 B on this page.
Use a dot for decimals
ASCII decimal input accepts +1, .5 and 1. as well as ordinary integers. Negative values, commas, grouping spaces, underscores, scientific notation and expressions are rejected. Rewrite 1,024 explicitly as 1024 or 1.024 before converting.
A failed line stops the batch
The limits are 500 nonempty rows, 100 digits per number including fractional digits, and 100000 input characters. Blank lines preserve the numbering. An invalid row reports its position and blocks export of any partial result.
Rounding describes the display
Choose 0–20 decimal places with half-up rounding. Rounded values carry ≈; nonzero values that would round to zero carry < and the smallest display step. Copied values retain these marks and units. JSON also stores the exact bit fraction.
Capacity only
There is no Mbps, MB/s, transfer-time estimate, prefixed bit unit or unit above PB/PiB. The tool does not inspect files, fetch URLs, sum rows or guess a best unit. Share the exported report; inputs are not placed in a share URL.

Data size converter questions

Why does a terabyte drive appear as about 931 GB?

A decimal terabyte is 1000000000000 B. Expressing that quantity in GiB gives about 931.322575 GiB. Some applications label this binary value GB. This explains the unit difference; formatting, partitions and reserved space can separately reduce usable capacity.

How do kilobytes differ from kibibytes?

A kilobyte uses a factor of 1000 bytes, while a kibibyte uses 1024. The difference grows with each prefix. For example, 1 MB is 1000000 B and 1 MiB is 1048576 B, so replacing one suffix with the other changes the quantity.

Should kilobytes use KB or kB?

The SI kilo prefix uses lowercase k, so kB is the standard spelling. KB is a common spelling that this tool accepts and displays as the same decimal unit. To request 1024 bytes, write KiB explicitly.

Why is bandwidth measured in bits while files use bytes?

Bandwidth is a rate, usually expressed in bits per second; a file size is an amount, usually in bytes. One byte contains eight bits. This page converts the amount only. A value ending in /s is a rate and needs a separate rate converter.

Does the conversion preserve the exact value?

The entered decimal and all unit factors are calculated exactly. The chosen decimal places affect display only. For an exact downstream calculation, use the JSON numerator and denominator rather than reusing a rounded display value. A visible zero without a mark means the input quantity is zero.

Something looks wrong?

Start with a known byte count

Use the data size converter to compare both scales, then export the checked quantities with their units intact.