Misplaced Pages

Kilobyte: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 21:20, 1 December 2013 editDondervogel 2 (talk | contribs)Extended confirmed users17,441 edits reinstate citation for hard drive storage← Previous edit Latest revision as of 08:00, 18 November 2024 edit undoZLEA (talk | contribs)Autopatrolled, Extended confirmed users, Pending changes reviewers, Rollbackers35,561 editsm Reverted 1 edit by 49.47.131.166 (talk): NoTags: Twinkle Undo 
(466 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
{{Short description|Multiple of the unit byte}}
{{Distinguish|kilobit}}
{{redirect|KByte|the battery electric car from Future Mobility Corporation|Byton K-Byte}}
{{Quantities of bytes}} {{Quantities of bytes}}
The '''kilobyte''' for 1000 ] (symbol: '''kB''') or '''Kilobyte''' (''']''') for 1024 bytes (symbol: '''KB''' or '''KiB''' or informally '''KBytes''') are two definitions for multiples of the unit byte for ]. Although the ] '']'' means 1000, the term ''kilobyte'' and the symbol ''KB'' have usually been used to refer to 1024 (2<sup>10</sup>) bytes, in the fields of ] and ]<ref> Merriam-webster.com (2010-08-13). Retrieved on 2011-01-07.</ref><ref>. Dictionary.reference.com (1995-09-29). Retrieved on 2011-01-07.</ref><ref>. Askoxford.com. Retrieved on 2011-01-07.</ref> except when where referring to data transfer rates {{cn}} and to disk storage space.<ref>1977 Disk/Trend Report – Rigid Disk Drives, published June 1977</ref> The symbol ''kB'' correctly however refers to 1000 (10<sup>3</sup>) bytes as used in modern times for file sizes. ]s always use ]es, where ''kB'' is never appropriate, as does ] capacity (not file sizes or flash-based storage) according to ] for memory modules. Informally sometimes the ''B'' is dropped, then ''K'' (the SI symbol for '']'' not ''kilo-''), given the right context, can been understood as 1024 bytes and ''k'' (always the lower case, SI prefix for 1000) can be taken for 1000 bytes. ''KB'' and ''kB'' are sometimes mistakenly used interchangeably, with or without the ''B'', not following any standard. The ''B'' should always be uppercase, because ''b'' means ]s, ''kb'' is ].


The '''kilobyte''' is a multiple of the unit ] for ].
==Definitions==
The unit kilobyte is commonly used to mean either 1000 or 1024 bytes. The 1024 number originated as compromise technical jargon for the byte ] that needed to be expressed by the powers of 2 but lacked a convenient name. As 1024 (2<sup>10</sup>) approximates 1000 (10<sup>3</sup>), roughly corresponding SI multiples were used for binary multiples. In 1998 the ] (IEC) proposed standards for ]es, specifying the use of megabyte to strictly denote 1000<sup>2</sup> bytes and ] to denote 1024<sup>2</sup> bytes. By the end of 2007, the IEC Standard had been adopted by the ], ], and ]. Nevertheless, the term kilobyte continues to be widely used with the following two meanings:


The ] (SI) defines the prefix '']'' as a multiplication factor of 1000 (10<sup>3</sup>); therefore, one kilobyte is 1000&nbsp;bytes.<ref name="IEC80000">International Standard ] Quantities and Units – Part 13: Information science and technology, International Electrotechnical Commission (2008).</ref> The internationally recommended unit symbol for the kilobyte is '''kB'''.<ref name="IEC80000" />
===Decimal===
* 1&nbsp;kB = {{gaps|1000|bytes}} = 10<sup>3</sup> bytes is the definition recommended by the ] (IEC).<ref name="NIST"> — The NIST Reference on Constants, Units, and Uncertainty</ref> This definition is used in ] contexts and most ], particularly ]s, ]-based storage,<ref> "Note: 1 megabyte (MB) = 1 million bytes; 1 gigabyte (GB) = 1 billion bytes."</ref> and ]s, and is also consistent with the other uses of the ] in computing, such as ] or ]. The ] 10.6 file manager is a notable example of this usage in software. Since ], file sizes are reported in decimal units.<ref>{{cite web|url=http://support.apple.com/kb/TS2419 |title=How Mac OS X reports drive capacity |publisher=Apple Inc |date=2009-08-27 |accessdate=2009-10-16}}</ref>


In some areas of ], particularly in reference to ] capacity, ''kilobyte'' instead typically refers to 1024 (2<sup>10</sup>) bytes. This arises from the prevalence of sizes that are ] in modern digital memory architectures, coupled with the coincidence that 2<sup>10</sup> differs from 10<sup>3</sup> by less than 2.5%. A ] is 1024&nbsp;bytes.<ref name="IEC80000">International Standard ] Quantities and Units – Part 13: Information science and technology, International Electrotechnical Commission (2008).</ref>
===Binary===
* 1&nbsp;KB (or KiB) = {{gaps|1024|bytes}} = 2<sup>10</sup> bytes is the definition used by ] and ]<ref>{{cite book |title=Professional Red Hat Enterprise Linux 3 |last1=Sharma |first1=Kapil |last2=Kabir |last2=Mohammed J. |last3=Norton |first3=Peter C. Norton |last4=Good |first4=Nathan |last5=Steidler-Dennison |first5=Tony |year=2005 |publisher=] |page=134 |quote=''Disk manufacturers sell you their disks saying that a kilobyte is 1,000 bytes, that a megabyte is a thousand of those, and that a gigabyte is another thousand of those, giving you 1,000,000,000 bytes to a gigabyte when you buy a disk. The rest of the computer world, including the programmers who write Linux, thinks of a kilobyte as 1,024 bytes (2^10 bytes), a megabyte as 1,048,576 bytes (2^20), and a gigabyte as 1,073,741,824 bytes (2^30), which means that you're buying just a bit less than you might think.'' |url=http://books.google.com/books?id=BuvNp1OLZRQC&pg=PA134&dq=linux+byte+kilobyte+1024&hl=en&sa=X&ei=-QTcUYKTF6GmigLzuoHYDQ&ved=0CFAQ6AEwBQ#v=onepage&q=linux%20byte%20kilobyte%201024&f=false}}</ref> for ], e.g., ]. In the unambiguous IEC standard the unit for this amount of information is one ].


{{TOC limit|3}}
==Examples==
* The ] real-time computer (1974) denoted 196,608 (which is 192×1024) as "196K",<ref
name ="HP21MX">{{Cite journal
| last =Frankenberg | first =Robert
| title =All Semiconductor Memory Selected for New Minicomputer Series
| journal = Hewlett-Packard Journal
| volume =26 | issue =2 | pages = pg 15–20 | publisher = Hewlett-Packard | month = October | year = 1974
| url = http://www.hpl.hp.com/hpjournal/pdfs/IssuePDFs/1974-10.pdf
| accessdate = 2007-06-18
| quote = 196K-word memory size
|format=PDF}}</ref> while the ] business computer (1973) denoted 131,072 (which is 128×1024) as "128K".<ref
name="HP3000">{{Cite journal
| last = Hewlett-Packard
| title =HP 3000 Configuration Guide
| journal = HP 3000 Computer System and Subsystem Data
| pages = pg 59 |date = November 1973| url = http://www.bitsavers.org/pdf/hp/3000/hp3000/5952-4500_optionsBrochure_Nov73.pdf
|format=PDF|accessdate=2010-01-22}}</ref>
* The ] SA-400 5{{1/4}}-inch ] (1976) held 109,375 bytes unformatted,<ref>http://www.swtpc.com/mholley/SA400/SA400_Index.htm</ref> and was advertised as "110 Kbyte", using the 1000 convention.<ref>http://www.swtpc.com/mholley/SA400/SA400_Datasheet.pdf</ref> Likewise, the 8-inch ] RX01 floppy (1975) held 256,256 bytes formatted, and was advertised as "256k".<ref>http://bitsavers.org/pdf/dec/disc/rx01/EK-RX01-MM-002_maint_Dec76.pdf</ref> On the other hand, the ] 5{{1/4}}-inch ] floppy format (1978) held 368,640 (which is 360×1024) bytes, but was advertised as "360 KB", following the 1024 convention.
* On modern systems, ] represents a 65,536 byte file as "66 KB",<ref>http://support.apple.com/kb/TS2419</ref> rounding to the nearest 1000, while ] would divide by 1024 and represent this as "64 KB".<ref>http://support.microsoft.com/kb/121839</ref>


==Definitions and usage==
In December 1998, the ] addressed such multiple usages and definitions by creating unique binary prefixes to denote multiples of 1024, such as “] (KiB)”, which represents 2<sup>10</sup>, or 1024, bytes.<ref>{{cite web|url=http://physics.nist.gov/cuu/Units/binary.html|title=Prefixes for binary multiples|author=]}} "In December 1998 the ] (IEC) approved as an IEC International Standard names and symbols for prefixes for binary multiples for use in the fields of data processing and data transmission."</ref>
===Decimal (1000&nbsp;bytes)===
In the ] (SI) the ] '']'' means 1,000 (10<sup>3</sup>); therefore, one kilobyte is 1000&nbsp;bytes. The unit symbol is kB.

This is the definition recommended by the ] (IEC).<ref name="NIST"> {{webarchive|url=https://web.archive.org/web/20070808000831/http://physics.nist.gov/cuu/Units/binary.html |date=2007-08-08 }} — The NIST Reference on Constants, Units, and Uncertainty</ref> This definition, and the related definitions of the prefixes ] ({{gaps|1,000,000}}), ] ({{gaps|1,000,000,000}}), etc., are most commonly used for ]s in ]s, internal bus, hard drive and flash media transfer speeds, and for the capacities of most ], particularly ]s,<ref>1977 Disk/Trend Report Rigid Disk Drives, published June 1977</ref> ]-based storage,<ref> {{webarchive|url=https://web.archive.org/web/20080513155718/http://apac.sandisk.com/Products/Catalog%281349%29-SanDisk_Extreme_Ducati_Edition_USB_Flash_Drive.aspx |date=2008-05-13 }} "Note: 1&nbsp;megabyte (MB) = 1&nbsp;million bytes; 1&nbsp;gigabyte (GB) = 1&nbsp;billion bytes."</ref> and ]s. It is also consistent with the other uses of the metric prefixes in computing, such as ] or ].

The international standard ] uses the term "byte" to mean eight ]s (1&nbsp;B = 8&nbsp;bit). Therefore, 1&nbsp;kB = 8000&nbsp;bit. One thousand kilobytes (1000&nbsp;kB) is equal to one ] (1&nbsp;MB), where 1&nbsp;MB is one million bytes.

===Binary (1024&nbsp;bytes)===
The term 'kilobyte' has traditionally been used to refer to 1024&nbsp;bytes (2<sup>10</sup>&nbsp;B).<ref> {{webarchive|url=https://web.archive.org/web/20100409171320/http://www.merriam-webster.com/dictionary/kilobyte |date=2010-04-09 }}. Merriam-webster.com (2010-08-13). Retrieved on 2011-01-07.</ref><ref> {{webarchive|url=https://web.archive.org/web/20100901202451/http://dictionary.reference.com/browse/kilobyte |date=2010-09-01 }}. Dictionary.reference.com (1995-09-29). Retrieved on 2011-01-07.</ref><ref> {{webarchive|url=https://web.archive.org/web/20060625132017/http://www.askoxford.com/concise_oed/kilobyte?view=uk |date=2006-06-25 }}. Askoxford.com. Retrieved on 2011-01-07.</ref> The usage of the metric prefix ''kilo'' for binary multiples arose as a convenience, because 1024 is approximately 1000.<ref>{{cite web|title=Prefixes for binary multiples|url=http://www.iec.ch/si/binary.htm|website=iec.ch|publisher=International Electrotechnical Commission|access-date=1 October 2016|url-status=live|archive-url=https://web.archive.org/web/20160925125914/http://www.iec.ch/si/binary.htm|archive-date=25 September 2016}}</ref>

The binary interpretation of metric prefixes is still prominently used by the ] operating system.<ref name="auto">{{cite web |url=http://support.microsoft.com/kb/121839 |title=Determining Actual Disk Size: Why 1.44 MB Should Be 1.40 MB |publisher=Support.microsoft.com |date=2003-05-06 |access-date=2014-03-25 |url-status=live |archive-url=https://web.archive.org/web/20140209012305/http://support.microsoft.com/kb/121839 |archive-date=2014-02-09 }}</ref> Binary interpretation is also used for ] capacity, such as main memory and ] size, due to the prevalent ]ing of memory.

The binary meaning of the kilobyte for 1024&nbsp;bytes typically uses the symbol KB, with an uppercase letter ''K''. The ''B'' is sometimes omitted in informal use. For example, a processor with 65,536&nbsp;bytes of cache memory might be said to have "64&nbsp;K" of cache. In this convention, one thousand and twenty-four kilobytes (1024&nbsp;KB) is equal to one megabyte (1&nbsp;MB), where 1&nbsp;MB is 1024<sup>2</sup>&nbsp;bytes.

In December 1998, the ] addressed such multiple usages and definitions by creating prefixes such as kibi, mebi, gibi, etc., to unambiguously denote powers of 1024.<ref>{{cite web|url=http://physics.nist.gov/cuu/Units/binary.html|title=Prefixes for binary multiples|author=National Institute of Standards and Technology|author-link=National Institute of Standards and Technology|url-status=live|archive-url=https://web.archive.org/web/20070808000831/http://physics.nist.gov/cuu/Units/binary.html|archive-date=2007-08-08}} "In December 1998 the ] (IEC) approved as an IEC International Standard names and symbols for prefixes for binary multiples for use in the fields of data processing and data transmission."</ref> Thus the kibibyte, symbol KiB, represents 2<sup>10</sup>&nbsp;bytes = 1024&nbsp;bytes. These prefixes are now part of IEC 80000-13. The IEC further specified that the kilobyte should only be used to refer to 1000&nbsp;bytes. The ] restricts the use of the SI prefixes strictly to powers of 10.<ref>{{SIbrochure9th|page=143}}. "The SI prefixes refer strictly to powers of 10. They should not be used to indicate powers of 2 (for example, one kilobit represents 1000&nbsp;bits and not 1024&nbsp;bits). The names and symbols for prefixes to be used with powers of 2 are recommended as follows: kibi Ki 2<sup>10</sup> "</ref>

==Use of term==
* The ] SA-400 5{{1/4}}-inch ] (1976) held 109,375&nbsp;bytes unformatted,<ref>{{cite web |url=http://www.swtpc.com/mholley/SA400/SA400_Index.htm |title=SA400 minifloppy |publisher=Swtpc.com |date=2013-08-14 |access-date=2014-03-25 |url-status=dead |archive-url=https://web.archive.org/web/20140527094602/http://www.swtpc.com/mholley/SA400/SA400_Index.htm |archive-date=2014-05-27 }}</ref> and was advertised as "110 Kbyte", using the 1000 convention.<ref>{{cite web |url=http://www.swtpc.com/mholley/SA400/SA400_Datasheet.pdf |title=Archived copy |access-date=2011-06-24 |url-status=dead |archive-url=https://web.archive.org/web/20110608195322/http://www.swtpc.com/mholley/SA400/SA400_Datasheet.pdf |archive-date=2011-06-08 }}</ref> Likewise, the 8-inch ] RX01 floppy (1975) held 256,256&nbsp;bytes formatted, and was advertised as "256k".<ref>{{cite web |url=http://bitsavers.org/pdf/dec/disc/rx01/EK-RX01-MM-002_maint_Dec76.pdf |title=Archived copy |access-date=2011-06-24 |url-status=dead |archive-url=https://web.archive.org/web/20110423194129/http://www.bitsavers.org/pdf/dec/disc/rx01/EK-RX01-MM-002_maint_Dec76.pdf |archive-date=2011-04-23 }}</ref> On the other hand, the ] 5{{1/4}}-inch ] floppy format (1978) held 368,640 (which is 360×1024) bytes, but was advertised as "360&nbsp;KB", following the 1024 convention.
* Early home computer systems would often advertise using the 1024 convention, hence the naming of the ], ], and the ].
* On modern systems, all versions of ] including the newest ({{as of|2019|lc=y}}) ] divide by 1024 and represent a 65,536-byte file as "64&nbsp;KB".<ref name="auto"/> Conversely, ] and newer represent this as 66&nbsp;kB, rounding to the nearest 1000&nbsp;bytes.<ref>{{cite web |url=http://support.apple.com/kb/TS2419 |title=How OS X and iOS report storage capacity |publisher=Support.apple.com |date=2013-07-01 |access-date=2014-03-25 |url-status=live |archive-url=https://web.archive.org/web/20140304015219/http://support.apple.com/kb/TS2419 |archive-date=2014-03-04 }}</ref> File sizes are reported with decimal prefixes.<ref>{{cite web |url=http://support.apple.com/kb/TS2419 |title=How Mac OS X reports drive capacity |publisher=Apple Inc |date=2009-08-27 |access-date=2009-10-16 |url-status=live |archive-url=https://web.archive.org/web/20091222235620/http://support.apple.com/kb/TS2419 |archive-date=2009-12-22 }}</ref>
* {{As of|2016|post=,}} the binary interpretation was still used in marketing and billing by some telecommunication companies, such as ],<ref>{{cite web|publisher=Vodafone Ireland|title=3G/GPRS data rates|url=https://www.vodafone.ie/planscosts_bus/data/|access-date=26 October 2016|url-status=live|archive-url=https://web.archive.org/web/20161026232743/https://www.vodafone.ie/planscosts_bus/data/|archive-date=26 October 2016}}</ref> ],<ref>{{cite web |publisher=AT&T |title=Data Measurement Scale |url=http://www.att.com/support_static_files/KB/KB24648.html |access-date=26 October 2016 }}{{dead link|date=December 2017 |bot=InternetArchiveBot |fix-attempted=yes }}</ref> ]<ref>{{cite web|publisher=Orange Romania|title=Internet Mobile Access|url=https://www.orange.ro/recharge/internet.html|access-date=26 October 2016|url-status=dead|archive-url=https://web.archive.org/web/20161026234911/https://www.orange.ro/recharge/internet.html|archive-date=26 October 2016}}</ref> and ].<ref>{{cite web|publisher=Telstra|title=Our Customer Terms|page=7|url=https://www.telstra.com.au/content/dam/tcom/personal/consumer-advice/pdf/intl-roaming.pdf|access-date=26 October 2016|url-status=live|archive-url=https://web.archive.org/web/20170410020355/https://www.telstra.com.au/content/dam/tcom/personal/consumer-advice/pdf/intl-roaming.pdf|archive-date=10 April 2017}}</ref>

== Data examples ==
"This is an example of a text which is exactly a kilobyte (kB) large. In this case, this text is 10^3 bytes long, but if you were to add 24 extra characters to this string, it would be 2^10 bytes long, which is used in some fields such as information technology. Each character in this string (which includes the quotation marks at the end, by the way) is exactly one byte long, which is 8 bits. The bit is the fundamental unit of information, which represents a single yes or no. So, one could measure the amount of information in a single letter with 5 bits (because 2^5 is 32, there are 26 letters in the English language), but because we also use other characters, like numbers, capital/lowercase letters, symbols (like {}$#*&%!`~), spaces, and more. In a computer's memory, these may be represented with some binary string, such as 01010100 (which represents the letter T), usually this is distinguished from one million ten thousand one hundred by appending '0b' to the front, like 0b01010100."
* The ], in Latin, is 296&nbsp;bytes.<ref>{{cite web|title=Vulgata Clementina|url=http://www.sacredbible.org/articles/Matthew-Latin3.htm|quote=pater noster qui es in cælis sanctificetur nomen tuum adveniat regnum tuum fiat voluntas tua sicut in cælo et in terra panem nostrum supersubstantialem da nobis hodie et dimitte nobis debita nostra sicut et nos dimittimus debitoribus nostris et ne nos inducas in tentationem sed libera nos a malo|access-date=2024-02-29|archive-date=2022-12-05|archive-url=https://web.archive.org/web/20221205102852/https://sacredbible.org/articles/Matthew-Latin3.htm|url-status=live}}</ref>
* The short story '']'' by ], hosted on ] as an uncompressed plain text file, is 12,843&nbsp;bytes: this is 12.8&nbsp;kilobytes (divided by 1,000) or 12.5&nbsp;kibibytes (divided by 1,024).<ref>{{Cite web|url=https://www.gutenberg.org/files/25525/25525-h/25525-h.htm|title=The Cask of Amontillado|first=Edgar Allan|last=Poe|via=Project Gutenberg|access-date=2024-02-29|archive-date=2024-05-08|archive-url=https://web.archive.org/web/20240508202014/https://www.gutenberg.org/files/25525/25525-h/25525-h.htm|url-status=live}}</ref>

* The novel '']'', by ], hosted on ] as an uncompressed plain text file, is 428,952&nbsp;bytes; this is 428.95&nbsp;kilobytes (divided by 1,000) and 418.90&nbsp;kibibytes (divided by 1,024).<!--428,952 bytes--> '']'' is 994,639&nbsp;bytes,<!--993,639 bytes--><!-- Minus the table of contents (etc) and Gutenberg metatext at the beginning (505b) and end (18,527b). --><ref>{{Cite book|url=https://www.gutenberg.org/ebooks/1400|title=Great Expectations|first=Charles|last=Dickens|date=July 1, 1998|via=Project Gutenberg|access-date=February 29, 2024|archive-date=February 29, 2024|archive-url=https://web.archive.org/web/20240229212608/https://www.gutenberg.org/ebooks/1400|url-status=live}}</ref> and '']'' is 1,191,763&nbsp;bytes.<!--1,191,763 bytes--><!-- Minus the prefaces and notes, and again minus the Gutenberg metatext at the beginning and end. --><ref>{{Cite book|url=https://www.gutenberg.org/ebooks/2701|title=Moby Dick; Or, The Whale|first=Herman|last=Melville|date=July 1, 2001|via=Project Gutenberg|access-date=February 29, 2024|archive-date=February 29, 2024|archive-url=https://web.archive.org/web/20240229214357/https://www.gutenberg.org/ebooks/2701|url-status=live}}</ref>


==See also== ==See also==
{{cols}}
* ]
* ] * ]
* ] * ]
* ] * ]
* {{Section link|Gigabyte|Consumer confusion}}
* ]
* {{Section link|JEDEC memory standards|Unit prefixes for semiconductor storage capacity}}

* {{Section link|Units of information|Size examples}}
== Notes ==
{{Reflist|2}} {{colend}}


== References == ==References==
{{Reflist|30em}}
{{cite web |url=http://www.jedec.org/sites/default/files/docs/JESD100B01.pdf |title=Terms, Definitions, and Letter Symbols for Microcomputers, Microprocessors, and Memory Integrated Circuits |date=December 2002 |publisher=JEDEC Solid State Technology Association |accessdate=22 September 2013}} * {{cite web |url=http://www.jedec.org/sites/default/files/docs/JESD100B01.pdf |title=Terms, Definitions, and Letter Symbols for Microcomputers, Microprocessors, and Memory Integrated Circuits |date=December 2002 |publisher=JEDEC Solid State Technology Association |access-date=22 September 2013 |archive-date=13 March 2016 |archive-url=https://web.archive.org/web/20160313053915/http://www.jedec.org/sites/default/files/docs/jesd100b01.pdf |url-status=live }}


{{Computer Storage Volumes}} {{Computer Storage Volumes}}

Latest revision as of 08:00, 18 November 2024

Multiple of the unit byte Not to be confused with kilobit. "KByte" redirects here. For the battery electric car from Future Mobility Corporation, see Byton K-Byte.
Multiple-byte units
Decimal
Value Metric
1000 kB kilobyte
1000 MB megabyte
1000 GB gigabyte
1000 TB terabyte
1000 PB petabyte
1000 EB exabyte
1000 ZB zettabyte
1000 YB yottabyte
1000 RB ronnabyte
1000 QB quettabyte
Binary
Value IEC Memory
1024 KiB kibibyte KB kilobyte
1024 MiB mebibyte MB megabyte
1024 GiB gibibyte GB gigabyte
1024 TiB tebibyte TB terabyte
1024 PiB pebibyte
1024 EiB exbibyte
1024 ZiB zebibyte
1024 YiB yobibyte
Orders of magnitude of data

The kilobyte is a multiple of the unit byte for digital information.

The International System of Units (SI) defines the prefix kilo as a multiplication factor of 1000 (10); therefore, one kilobyte is 1000 bytes. The internationally recommended unit symbol for the kilobyte is kB.

In some areas of information technology, particularly in reference to random-access memory capacity, kilobyte instead typically refers to 1024 (2) bytes. This arises from the prevalence of sizes that are powers of two in modern digital memory architectures, coupled with the coincidence that 2 differs from 10 by less than 2.5%. A kibibyte is 1024 bytes.

Definitions and usage

Decimal (1000 bytes)

In the International System of Units (SI) the metric prefix kilo means 1,000 (10); therefore, one kilobyte is 1000 bytes. The unit symbol is kB.

This is the definition recommended by the International Electrotechnical Commission (IEC). This definition, and the related definitions of the prefixes mega (1,000,000), giga (1,000,000,000), etc., are most commonly used for data transfer rates in computer networks, internal bus, hard drive and flash media transfer speeds, and for the capacities of most storage media, particularly hard disk drives, flash-based storage, and DVDs. It is also consistent with the other uses of the metric prefixes in computing, such as CPU clock speeds or measures of performance.

The international standard IEC 80000-13 uses the term "byte" to mean eight bits (1 B = 8 bit). Therefore, 1 kB = 8000 bit. One thousand kilobytes (1000 kB) is equal to one megabyte (1 MB), where 1 MB is one million bytes.

Binary (1024 bytes)

The term 'kilobyte' has traditionally been used to refer to 1024 bytes (2 B). The usage of the metric prefix kilo for binary multiples arose as a convenience, because 1024 is approximately 1000.

The binary interpretation of metric prefixes is still prominently used by the Microsoft Windows operating system. Binary interpretation is also used for random-access memory capacity, such as main memory and CPU cache size, due to the prevalent binary addressing of memory.

The binary meaning of the kilobyte for 1024 bytes typically uses the symbol KB, with an uppercase letter K. The B is sometimes omitted in informal use. For example, a processor with 65,536 bytes of cache memory might be said to have "64 K" of cache. In this convention, one thousand and twenty-four kilobytes (1024 KB) is equal to one megabyte (1 MB), where 1 MB is 1024 bytes.

In December 1998, the IEC addressed such multiple usages and definitions by creating prefixes such as kibi, mebi, gibi, etc., to unambiguously denote powers of 1024. Thus the kibibyte, symbol KiB, represents 2 bytes = 1024 bytes. These prefixes are now part of IEC 80000-13. The IEC further specified that the kilobyte should only be used to refer to 1000 bytes. The International System of Units restricts the use of the SI prefixes strictly to powers of 10.

Use of term

  • The Shugart SA-400 51⁄4-inch floppy disk (1976) held 109,375 bytes unformatted, and was advertised as "110 Kbyte", using the 1000 convention. Likewise, the 8-inch DEC RX01 floppy (1975) held 256,256 bytes formatted, and was advertised as "256k". On the other hand, the Tandon 51⁄4-inch DD floppy format (1978) held 368,640 (which is 360×1024) bytes, but was advertised as "360 KB", following the 1024 convention.
  • Early home computer systems would often advertise using the 1024 convention, hence the naming of the Commodore 64, Commodore 128, and the Amstrad CPC 464.
  • On modern systems, all versions of Microsoft Windows including the newest (as of 2019) Windows 10 divide by 1024 and represent a 65,536-byte file as "64 KB". Conversely, Mac OS X Snow Leopard and newer represent this as 66 kB, rounding to the nearest 1000 bytes. File sizes are reported with decimal prefixes.
  • As of 2016, the binary interpretation was still used in marketing and billing by some telecommunication companies, such as Vodafone, AT&T, Orange and Telstra.

Data examples

"This is an example of a text which is exactly a kilobyte (kB) large. In this case, this text is 10^3 bytes long, but if you were to add 24 extra characters to this string, it would be 2^10 bytes long, which is used in some fields such as information technology. Each character in this string (which includes the quotation marks at the end, by the way) is exactly one byte long, which is 8 bits. The bit is the fundamental unit of information, which represents a single yes or no. So, one could measure the amount of information in a single letter with 5 bits (because 2^5 is 32, there are 26 letters in the English language), but because we also use other characters, like numbers, capital/lowercase letters, symbols (like {}$#*&%!`~), spaces, and more. In a computer's memory, these may be represented with some binary string, such as 01010100 (which represents the letter T), usually this is distinguished from one million ten thousand one hundred by appending '0b' to the front, like 0b01010100."

See also

References

  1. ^ International Standard IEC 80000-13 Quantities and Units – Part 13: Information science and technology, International Electrotechnical Commission (2008).
  2. Prefixes for Binary Multiples Archived 2007-08-08 at the Wayback Machine — The NIST Reference on Constants, Units, and Uncertainty
  3. 1977 Disk/Trend Report Rigid Disk Drives, published June 1977
  4. SanDisk USB Flash Drive Archived 2008-05-13 at the Wayback Machine "Note: 1 megabyte (MB) = 1 million bytes; 1 gigabyte (GB) = 1 billion bytes."
  5. Kilobyte – Definition and More from the Free Merriam-Webster Dictionary Archived 2010-04-09 at the Wayback Machine. Merriam-webster.com (2010-08-13). Retrieved on 2011-01-07.
  6. Kilobyte | Define Kilobyte at Dictionary.com Archived 2010-09-01 at the Wayback Machine. Dictionary.reference.com (1995-09-29). Retrieved on 2011-01-07.
  7. Definition of kilobyte from Oxford Dictionaries Online Archived 2006-06-25 at the Wayback Machine. Askoxford.com. Retrieved on 2011-01-07.
  8. "Prefixes for binary multiples". iec.ch. International Electrotechnical Commission. Archived from the original on 25 September 2016. Retrieved 1 October 2016.
  9. ^ "Determining Actual Disk Size: Why 1.44 MB Should Be 1.40 MB". Support.microsoft.com. 2003-05-06. Archived from the original on 2014-02-09. Retrieved 2014-03-25.
  10. National Institute of Standards and Technology. "Prefixes for binary multiples". Archived from the original on 2007-08-08. "In December 1998 the International Electrotechnical Commission (IEC) approved as an IEC International Standard names and symbols for prefixes for binary multiples for use in the fields of data processing and data transmission."
  11. The International System of Units (PDF) (9th ed.), International Bureau of Weights and Measures, Dec 2022, p. 143, ISBN 978-92-822-2272-0. "The SI prefixes refer strictly to powers of 10. They should not be used to indicate powers of 2 (for example, one kilobit represents 1000 bits and not 1024 bits). The names and symbols for prefixes to be used with powers of 2 are recommended as follows: kibi Ki 2 "
  12. "SA400 minifloppy". Swtpc.com. 2013-08-14. Archived from the original on 2014-05-27. Retrieved 2014-03-25.
  13. "Archived copy" (PDF). Archived from the original (PDF) on 2011-06-08. Retrieved 2011-06-24.{{cite web}}: CS1 maint: archived copy as title (link)
  14. "Archived copy" (PDF). Archived from the original (PDF) on 2011-04-23. Retrieved 2011-06-24.{{cite web}}: CS1 maint: archived copy as title (link)
  15. "How OS X and iOS report storage capacity". Support.apple.com. 2013-07-01. Archived from the original on 2014-03-04. Retrieved 2014-03-25.
  16. "How Mac OS X reports drive capacity". Apple Inc. 2009-08-27. Archived from the original on 2009-12-22. Retrieved 2009-10-16.
  17. "3G/GPRS data rates". Vodafone Ireland. Archived from the original on 26 October 2016. Retrieved 26 October 2016.
  18. "Data Measurement Scale". AT&T. Retrieved 26 October 2016.
  19. "Internet Mobile Access". Orange Romania. Archived from the original on 26 October 2016. Retrieved 26 October 2016.
  20. "Our Customer Terms" (PDF). Telstra. p. 7. Archived (PDF) from the original on 10 April 2017. Retrieved 26 October 2016.
  21. "Vulgata Clementina". Archived from the original on 2022-12-05. Retrieved 2024-02-29. pater noster qui es in cælis sanctificetur nomen tuum adveniat regnum tuum fiat voluntas tua sicut in cælo et in terra panem nostrum supersubstantialem da nobis hodie et dimitte nobis debita nostra sicut et nos dimittimus debitoribus nostris et ne nos inducas in tentationem sed libera nos a malo
  22. Poe, Edgar Allan. "The Cask of Amontillado". Archived from the original on 2024-05-08. Retrieved 2024-02-29 – via Project Gutenberg.
  23. Dickens, Charles (July 1, 1998). Great Expectations. Archived from the original on February 29, 2024. Retrieved February 29, 2024 – via Project Gutenberg.
  24. Melville, Herman (July 1, 2001). Moby Dick; Or, The Whale. Archived from the original on February 29, 2024. Retrieved February 29, 2024 – via Project Gutenberg.
Units of information
Platform-independent units
Platform-dependent units
Metric bit units
Metric byte units
Category: