Daniel Lemire's blog

, 12 min read

Bytes or octets?

19 thoughts on “Bytes or octets?”

  1. Vincenzo M says:

    Actually, you should use kB (lowercase) (see http://en.wikipedia.org/wiki/Kilo-).

    Disclaimer: Yes, I am even more pedantic.

  2. Rafael Lopes says:

    That is why I prefer to use bits as a measure unit over bytes.

  3. @Vincenzo

    Quite true. One should write “1 kB” and not “1 KB” as I did. But you should write “1 KiB” and not “1 kiB”.

  4. I really don’t like the term ‘octet’ because it seems like it would be too easy to confuse with the base ‘octal’.

    What’s so wrong with a byte being 8 and a nibble being 4? Then we could add in a ‘lick’ being 2, and perhaps a ‘sniff’ as one 🙂 Thus 64 would probably be a ‘mouth-full’ 🙂

    Paul.

  5. @Homer

    “What’s so wrong with a byte being 8”

    Nothing much unless you want to be pedantic:

    The byte is a unit of digital information in computing and telecommunications that most commonly consists of eight bits. (…) The term octet is used to unambiguously specify a size of eight bits, and is used extensively in protocol definitions, for example.

  6. My hazy memory says that I think there were some early platforms where a byte wasn’t eight bits, but then again the rational part of my brain says that we should just forget that ever happened 🙂

    Paul.

  7. @Paul

    Sure, there is nothing fundamental about 8-bit systems and it could change.

  8. Vasilis Vasaitis says:

    Language isn’t shaped by dictionaries or national committees — or in this case, industry standards: it’s shaped by people and how they actually use the words. So in this particular case, if you use the word “byte” to mean anything else than a set of 8 bits, good luck getting anyone else to understand what you mean, standards be damned.

  9. JeffE says:

    So if a hard-drive manufacturer advertises a 1TB hard drive, which actually holds only 1.25 * 10^10 octets, can they legally defend themselves by arguing that their drive operates on only one bit at a time?

    Nope.

  10. JeffE says:

    Sorry, I meant 1.25 * 10^11. Math fail.

  11. I’d suggest you to buy (and read) the excellent:

    Glossaire des unités et grandeurs de l’informatique

    by Michel Dubesset

    http://www.eyrolles.com/Informatique/Livre/glossaire-des-unites-et-grandeurs-de-l-informatique-9782841770533

  12. Jan M says:

    The Sperry 1100/2200 series had 36 bit words, and so had 9 bit bytes. Also earlier large DEC systems.

    However, my understanding (with no references!) is that we use the word octet because the word byte sounds rude in French.

  13. matt mck says:

    What about ISO/IEC 80000-13? That sets byte at 8, but uses KiB for 1024 bytes vs. kB for 1000 bytes.

  14. Anonymous says:

    >IEC 80000-13:2008RSS
    >Quantities and units — Part 13: >Information science and technology

    >Media and price

    >Format Price Language
    >PDF CHF 154,00

    They obviously don’t want this standard to be enforced. Who would pay CHF 154 to know that byte has 8 bits?

  15. Itman says:

    It was me above. A lot of code will blow up, if the number of bits in the byte changes. In this sense, the current definition of the byte is very fundamental.

  16. EduardoC says:

    Accordind the ISO/IEC 80000-13, the bit or byte as signed by “b” (lower case), because B (upper) is the Bell ( measurement unit, and K (upper) refer a Kelvin (temperature). Kilo is k (lower). So, KB it’s Kelvin Bell unit (kkk), and Kb, kB are incorrects forms to describe informatic storage units.

  17. @EduardoC

    So it is 1kb then?

    1. Oren Tirosh says:

      Bytes of sizes other than 8 bits are really an anachronism now and are unlikely to make a comeback.

      In practice, ‘octet’ is largely a European continental thing and is used by standards bodies with a significant European influence. In French it is a common everyday word.

    2. Partha says:

      Lower case ‘b’ is used for bits and upper case ‘B’ for bytes, generally.