Byte counts in scripts, quotas and tickets

Command-line tools and file APIs report sizes in bytes, while vendors and operating system dialogs report them in larger units. When a script log says a volume holds 2,199,023,255,552 bytes and a ticket asks how many tebibytes that is, someone has to line up the digits. This page multiplies tebibytes by 1,099,511,627,776 and shows bytes. That suits an administrator setting a quota, a developer writing a test fixture or a student checking a homework table. The tool reads TiB strictly as the binary unit. Entering 2 returns 2,199,023,255,552 B, and entering 1.5 returns 1,649,267,441,664 B. Nothing here inspects a disk: it restates the number you type in a smaller unit.

Where 1,099,511,627,776 comes from

The tebibyte belongs to the IEC binary prefixes, which step by 1,024 instead of 1,000. Four steps from the byte give 1,024 × 1,024 × 1,024 × 1,024, which is 2^40. That is why the factor looks irregular in decimal but is a clean power of two in binary. The conversion is a single multiplication, B = TiB × 1,099,511,627,776, and the factor is a definition, so nothing is measured or approximated. The page formula label shows the rounded form 1099511627780 for readability, while the calculation keeps the full integer. A second way to check a result by hand is to multiply the tebibyte value by 1,024 four times in a row, which must land on the same byte count.

Ten tebibytes as a byte count

The page opens with 10 TiB and returns 10,995,116,277,760 bytes, a figure of about 11 trillion. Reading it aloud is awkward, which is why people usually prefer tebibytes for planning and bytes only when a tool demands them. The figure also gives a quick sense check: 1 TiB is about 1.0995 times 1 TB, so ten tebibytes should land near 10.995 trillion bytes. If your own result for 10 is exactly 10,000,000,000,000, you likely used decimal terabytes by mistake. The default is also a useful reference case when you test a spreadsheet formula or a script that does the same conversion.

A 4 TB drive counted in bytes

A drive sold as 4 TB holds 4,000,000,000,000 bytes, because the vendor uses decimal terabytes. In tebibytes that is about 3.638 TiB, which is why an operating system that reports binary units shows a number near 3.64 for a new 4 TB disk. Enter 4,000,000,000,000 bytes as the source and tebibytes as the target to see it. The missing 0.36 TiB is a difference in unit definition, since all the bytes are still there. Some of the usable space is then taken by filesystem metadata and reserved blocks, which this page does not model. When you compare drives, convert every figure to bytes first, and the confusion between decimal and binary labels disappears.

The 2 TiB boundary in older partition tables

The classic MBR partition scheme stores sector counts in 32 bits, and with 512-byte sectors that tops out at 2^32 × 512 bytes, which is 2,199,023,255,552 bytes or 2 TiB. Disks larger than that need GPT or another scheme, and an older tool or firmware may show only the first 2 TiB of a bigger drive. This is a practical reason to know the byte value of 2 TiB: if a utility reports 2,199,023,255,552 as the size of a larger disk, it has hit the limit rather than measured the disk. The page confirms the figure when you enter 2 TiB. Which partition scheme a system uses is outside the conversion, so check the disk management tool for that.

Integers that stop being exact above 8,192 TiB

Spreadsheets and JavaScript store ordinary numbers as 64-bit floating point, which represents whole numbers exactly up to 2^53, or 9,007,199,254,740,992. Divided by the tebibyte factor, that is 8,192 TiB. Any byte total beyond that may lose its last digits when a program holds it as a plain number, even though the TiB value you typed looked harmless. Most people never reach that size, but data platforms and long-term archives can, and the page itself computes in floating point as well. For very large totals use integer types, such as 64-bit integers or big integers, in your own code. At the 10 TiB default the figure is far inside the safe range, although the displayed result may show a tiny trailing artifact from the binary arithmetic.

Going from bytes back to tebibytes

To reverse the direction, choose bytes as the source and tebibytes as the target. The page divides by 1,099,511,627,776. A value of 549,755,813,888 bytes becomes 0.5 TiB, and 1,649,267,441,664 bytes becomes 1.5 TiB. Real byte counts rarely land on tidy fractions, so expect results like 3.638 TiB for a decimal 4 TB drive. If you divide a byte count by 1,000,000,000,000 instead, you get decimal terabytes and a number about 10 percent larger than the tebibyte figure. Round only at the end, since rounding the tebibyte value first and converting back to bytes would give a count that differs from the original in the third or fourth significant digit.

Pasting long numbers without losing digits

A byte count with thirteen digits is easy to mistype. Group digits in threes when you read them: 10,995,116,277,760 has four groups after the first. Copy results rather than retyping them, and keep the unit symbol B next to the number in notes and tickets so that a reader does not take it for kilobytes. If a spreadsheet shows the number in scientific notation, widen the column or apply a number format with no decimals, because the stored value is unchanged. When two people compare totals from different tools, ask whether each figure counts bytes of file content or bytes of allocated space, since the two differ. The page converts only the unit and treats your number as given.

Rounding and display of the long result

The page works in double-precision floating point, and a result with thirteen digits is well inside the roughly fifteen digits that format can hold. Large products can still show a tiny artifact in the last place, for example a value such as 10,995,116,277,760.002 in some tools, which is a display effect and not a different answer. Round bytes to a whole number when you quote them, since a fraction of a byte has no meaning for stored files. If you need an auditable figure, take the tebibyte value as an integer or a short decimal, multiply with integer arithmetic in your own code and compare with the page. The two should agree digit for digit.