Fitting small things into a large allowance

A data plan, a cloud quota or a memory card is measured in gigabytes, while the items you store on it, such as photos, documents and web pages, are measured in kilobytes. Converting the allowance into kilobytes allows a direct division. A 1.5 GB plan is 1,500,000 kB. If an average photo is 4,000 kB, the plan holds about 375 of them. The converter performs the first step exactly and leaves the average size to you, because it depends on the camera, the format and the settings, none of which the page knows.

Kilo and giga differ by a million

The SI prefixes kilo and giga differ by 10^6, so one gigabyte is exactly one million kilobytes in the decimal convention. The correct symbol for kilobyte is kB, with a lowercase k, as used by the SI. The binary relative, the kibibyte (KiB), is 1,024 bytes, and it has its own sibling page. Operating systems have shown KB for either meaning, and a file listed as 1,000 KB may be 1,024,000 bytes in a tool that counts in 1,024s, which is 1,024 kB in decimal. This page uses 1,000 bytes per kilobyte throughout.

Reading the default of 10 GB

The default input of 10 GB gives 10,000,000 kB, ten million kilobytes. The large number shows how many small units a gigabyte contains. At 500 kB per average web page, 10 GB would hold 20,000 pages. At 150 kB per email with a small attachment, it would hold about 66,667. These illustrations show why the unit scale matters, since a figure of ten million is awkward to read and a figure in GB communicates the same amount much more briefly. Use the unit that fits the audience and the size of the thing being described.

Photos, documents and web pages

Typical sizes, offered as illustrations, make the result concrete. A 12-megapixel JPEG photo might take 3,000 to 5,000 kB, so 1 GB holds between 200 and 333 of them. A one-page text document might be 25 kB, and 1 GB would hold 40,000 of those. A web page transferred over a metered connection might weigh 2,000 kB, and 1 GB equals 500 such visits. In each case the calculation is 1,000,000 divided by the item size in kB. The page supplies the million, and you supply a realistic size from your own files. To find a typical size, select a folder of similar items, read its total size and divide by the number of files. A folder of 120 photos totaling 480,000 kB averages 4,000 kB each, and the 1 GB allowance then holds about 250 more. Averages hide spread, so keep a margin of ten or twenty percent for the larger files.

Data allowances in kB

Mobile and satellite plans sometimes meter in smaller steps. A pay-as-you-go plan may bill per 10 kB, and a 0.001 GB allowance is 1,000 kB. A background app syncing 250 kB per hour uses 6,000 kB, or 0.006 GB, in a day. Seeing the daily total in kB shows that a small 0.25 GB allowance, which is 250,000 kB, covers about 41 days of that sync. The conversion helps decide whether a small, steady process is a concern or negligible compared with video, which uses thousands of kB each second. A video stream at 3,000 kB per second would use 0.18 GB in a minute, so the whole 0.25 GB allowance disappears in about 83 seconds of streaming at that rate. Putting both in kB makes the contrast between sync traffic and streaming obvious.

From kB back to GB

In the reverse direction, choose kB as the source and GB as the target, and the engine divides by 1,000,000. A folder of 2,500,000 kB is 2.5 GB, 750,000 kB is 0.75 GB, and 40,000 kB is 0.04 GB. This direction is useful when a report lists totals in kB and you want a size to compare with a drive or a quota. A backup that reports 3,200,000 kB of changes in a night is 3.2 GB, and 18,000,000 kB is 18 GB. Keep the unit with the number in your notes, since the same digits mean very different sizes in kB and in GB, and a thousand-fold slip is easy to make when copying from a table.

Decimal kB and the 1,024 habit

The 1,024 convention is deeply embedded in software history. File managers on several operating systems still divide by 1,024 and print KB. A file of 1,500,000 bytes then shows as 1,465 KB and not 1,500 kB. If you convert 1.5 GB with this page you get 1,500,000 kB, and a file manager may display 1,464,844 KB for the same bytes. Both are right in their own convention. To compare them, convert both to bytes. The page offers the KiB sibling for readers who need the binary figure.

Exact multiplication and rounded input sizes

The multiplication by one million is exact, so the output has no rounding error. A value of 0.0035 GB gives 3,500 kB. Where the input is itself a rounded figure, such as a vendor claiming 1.2 GB, keep the same precision in the result and write 1,200,000 kB, not 1,200,000.000. For tables, align the numbers and place the unit in the header. For readers who struggle with long digit strings, a note in megabytes can follow, such as 1,500 MB, in the same document. Tables that mix GB and kB columns benefit from a single fixed unit per column, because a reader scanning down a list can compare values at a glance when every row is in the same unit.

Prefix and symbol checks

Three checks catch most mistakes. First, a gigabyte must give a million kilobytes, so 1 GB returning 1,000 or 1,000,000,000 means a wrong unit was selected. Second, check the symbol: kB is kilobytes, kb is kilobits, and a factor of 8 separates them. Third, avoid pasting a number with thousands separators from a different locale, since 1.500 in some regions means one thousand five hundred. If a result looks off by a clear power of ten, the prefix or the decimal separator is the likely cause. A fourth check is to run the round trip: convert 0.75 GB to 750,000 kB and then back, and confirm that you recover 0.75. Any difference means a unit was selected incorrectly in one of the two steps, and it is easier to find that on a simple number than on a real one.