Convert TiB to kB

TiB
1099511627.78kB

1 TiB = 1099511627.78 kB

A tebibyte is 1,099,511,627,776 bytes, so it holds 1,099,511,627.776 kB — roughly 1.1 billion records of a kilobyte each. Converting TiB to kB is the arithmetic behind retention and capacity questions: the pool is reported in tebibytes and the things filling it are log lines, rows and documents measured in kilobytes.

  • Where it runs In your browser. The number you type is never part of a request.
  • Exact by definition 1 TiB is exactly 1099511627.78 kB — a definition, not a rounded factor.
  • Answers as you type No button, no wait. The worked answer is already on the page before any script runs.

Tebibyte to Kilobyte in practice

  • 3.64 TiB is 4002000000 kB

    — what a four-terabyte drive reports once it is formatted.

  • 16 TiB is 17590000000 kB

    — a small server array.

  • 4.547e-7 TiB is 500 kB

    — a lean web page.

  • 5.821e-8 TiB is 64 kB

    — a long email.

Tebibyte to Kilobyte at a glance

Every figure here is computed from the same definition the calculator uses, so the table cannot drift away from the answer above it.
TiBkB
11099511627.78
22199023255.55
55497558138.88
1010995116277.8
5054975581388.8
100109951162778
500549755813888
10001099511627780

Tebibyte and Kilobyte

A tebibyte is 1,024 gibibytes. The gap against the terabyte has grown with each step: 2.4% at kilo, 4.9% at mega, 7.4% at giga, 10% at tera.

A kilobyte is 1,000 bytes when a standards body defines it and 1,024 when an operating system does. This page uses 1,000; the kibibyte is the unit that means 1,024.

A tebibyte is exactly 1,099,511,628 kilobytes

Going this way is a multiplication, and by a whole number: one tebibyte is 1,099,511,628 kilobytes, exactly, and 1,099,511,628 is the definition rather than a measurement that came close.

That makes it one of the few conversions worth doing in your head, and it makes the answer checkable: divide back and you must land on the number you started with, exactly, with no remainder to explain away.

TiB is the binary one

One TiB is 1,024 of the unit below it; one TB is 1,000. On this page that is the difference between 1099511627.776 kB and 1000000000 kB — 10 % — and the gap grows at every step up the scale, which is why it is a rounding error on a photograph and a visible chunk of a hard disk.

This is the whole of the missing-storage mystery, and on this page it is worth 10 %. A drive sold in TB holds exactly what the label says; Windows divides by 1,024 instead of 1,000, keeps the decimal name, and reports 1000000000 kB where the box said 1099511627.776. macOS has counted these in the decimal units since 10.6, which is why the same drive can look two sizes on two machines — nothing is missing and nobody is rounding, the same bytes have two names.

A pool in tebibytes, filled by records measured in kilobytes

Nine orders of magnitude separate these two units, and the reason to cross them is almost always a count. How many log lines will fit. How many documents. How many days of retention at the current rate. A tebibyte is 1,099,511,627.776 kB, which for every practical purpose is 1.1 billion one-kilobyte records — a figure worth remembering because it turns most of these questions into a single division.

At two kilobytes a record that becomes 549.8 million, at five kilobytes 219.9 million, and at half a kilobyte 2.2 billion. The spread across those three is a factor of ten, driven entirely by the per-record size, while the units question moves the answer by ten per cent. That ordering is the most useful thing to take from this conversion: get the record size right and the prefix will look after itself.

Retention is the same division with a rate in it

A system writing a thousand lines a second at a kilobyte each produces a megabyte a second, which is 86.4 GB a day. A tebibyte of uncompressed capacity therefore covers 12.7 days. Doubling the line rate halves it, doubling the line size halves it again, and adding a second application writing at the same rate halves it once more. The arithmetic is trivial and the inputs are where the work is.

Retention windows are usually specified before the rate is known, which inverts the calculation: divide the required capacity by the days, and the answer is the daily budget the system has to stay inside. Thirty days at 86.4 GB a day is 2.59 TB, or 2.36 TiB, and that is the figure to compare against the pool before anybody writes a retention policy that the storage cannot honour.

Compression moves the answer by more than the units do

Structured text compresses well because it repeats itself: timestamps in a fixed format, repeated field names, a small vocabulary of message templates. Ratios of five to one and better are ordinary for log data, and the exact figure depends on the content and the algorithm rather than on anything that can be derived from a size. That single factor changes a retention estimate more than every other input combined.

It also has to be applied at the right point. Compression happens on the stored side, so the record count and the ingest rate are in uncompressed kilobytes while the capacity is in compressed ones. Dividing an uncompressed rate into a compressed capacity without the ratio in between gives an answer that is wrong by the whole compression factor, which is an error of hundreds of per cent rather than the ten this page’s units are worth.

What sits on disk beside the record itself

A stored record is rarely only its payload. Databases add per-row headers, secondary indexes proportional to the columns they cover, write-ahead logs that hold recent changes twice, and replicas that multiply the whole thing by the replication factor. Search systems store an inverted index that can approach the size of the documents it describes. None of this appears in the kilobyte figure somebody measured on a sample.

The reliable method is to stop estimating the components and measure the system. Load a known number of records into a representative instance, read the occupied size, and divide. The result is a bytes-per-record figure that already includes every overhead the software imposes, and it can be multiplied out to any scale with far more confidence than a sum of guesses about indexes.

Where precision is worth having and where it is theatre

Use the exact factor — 1,099,511,627.776 kB to the tebibyte — because it is free and because it stops the ten per cent from creeping in. Then round the answer hard. A retention estimate built on an average record size, an average rate and an assumed compression ratio does not support four significant figures, and reporting one invites somebody downstream to plan against a number that was never that firm.

The honest form of the answer is a range with its assumptions attached: about two weeks uncompressed, about three months at eight to one, assuming a kilobyte a line and a thousand lines a second. Every one of those inputs can be checked and corrected later, which a single figure of 12.7 days cannot.

Telling a decimal sizing from a binary one at a glance

A terabyte is exactly 1,000,000,000 kB — a clean billion, with no fraction anywhere. A tebibyte is 1,099,511,627.776. That difference in tidiness is a reliable tell when reading somebody else’s spreadsheet: a capacity line showing a round billion kilobytes was derived from a decimal terabyte, whatever the column heading claims, and a line showing 1.0995 billion came from a pool report.

The check is worth running on any sizing document that has passed through more than one person. Mixed conventions in a single sheet are common, because the capacity usually comes from one system and the rate from another, and the resulting ten per cent tends to be attributed to overhead rather than to arithmetic.

Deleting records does not return the capacity immediately

Retention arithmetic assumes that expired records stop occupying space, and most storage engines do not work that way. Rows marked for deletion stay on disk until a compaction or cleanup pass runs, log segments are removed whole rather than line by line, and copy-on-write layouts keep old blocks alive for as long as a snapshot references them. The steady state is therefore larger than the retention window implies.

The size of the excess depends on how often the reclamation runs. Where a system compacts daily, the overshoot is roughly one day of ingest, which on 86.4 GB a day is 0.08 TiB and negligible against a large pool. Where it runs weekly, or only when a threshold is crossed, the overshoot can be a substantial fraction of the window and needs to be added to the sizing rather than discovered when the pool fills.

Writing a sizing so the next person can re-check it

A retention calculation should record five things: the capacity and its unit, the per-record size and how it was obtained, the rate, the compression assumption, and the resulting window. Any of the five can change, and a document that carries all of them can be updated in a minute. One that carries only the conclusion has to be redone from scratch, usually by somebody who will make different assumptions.

Stating the unit explicitly on every capacity figure is the part most often skipped and the part that causes the most trouble. A pool of 20 TiB is 21,990,232,555.52 kB and a pool of 20 TB is 20,000,000,000 — two billion kilobytes apart, which at a kilobyte a record is two billion records of difference in an answer that looked like it was about storage rather than about units.

Convert TiB to kB: common questions

How many kilobytes are in a tebibyte?

1,099,511,627.776 kB, since a tebibyte is 1,099,511,627,776 bytes and a kilobyte is 1,000. The practical form is 1.1 billion: a tebibyte holds a little under 1.1 billion one-kilobyte records before any overhead is counted.

How long does a tebibyte last for logs?

At a thousand lines per second averaging a kilobyte each, a system writes 86.4 GB a day and fills a tebibyte in 12.7 days uncompressed. With text compression at eight to one, the same tebibyte covers around a hundred days. The compression ratio moves the answer far more than the choice of unit does.

Does the binary-versus-decimal difference matter at this scale?

It is worth ten per cent, which is real but smaller than almost every other uncertainty in the calculation. A per-record size estimated to the nearest kilobyte is already carrying more error than that. Use the exact factor because it costs nothing, and do not let its precision suggest the answer is precise.

Should I count the index as well as the rows?

Yes, and it is often a large share. Secondary indexes, write-ahead logs and replication copies all consume capacity proportional to the data, and a sizing that counts only the rows can be out by a factor rather than a percentage. Measure a representative sample of the real system instead of estimating each component.

What is a tebibyte in kilobytes if the source meant terabytes?

A terabyte is 1,000,000,000 kB exactly — a clean billion — against 1,099,511,627.776 for a tebibyte. The tidiness of the first number is a useful tell: if a sizing document shows a round billion, it was computed from a decimal terabyte, whatever unit the label says.

How precise should a retention estimate be?

Two significant figures is generous. The inputs are an average item size that varies by workload, a rate that varies by hour, and a compression ratio that varies by content. Reporting a retention window as 12.7 days rather than about a fortnight implies a confidence the inputs do not support.

Going the other way: Kilobyte to Tebibyte

One kB is 9.09495e-10 TiB. It is the same relationship read backwards, so an answer from one page put through the other has to come back to where it started.

Where these figures come from

The claims this page makes about data units are checkable, and these are the documents that settle them.

How this page works

The factor is a constant in the page and the arithmetic is four operations, so nothing is sent anywhere and nothing needs to be. The number you type never leaves the browser — there is no request for it to travel in.