Tell me more ×
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It's 100% free, no registration required.

I'm working on a web app that will show the size of certain files, and I'm wondering if there's any consensus about how to report the units of bytes. Technically the IEC has weighed in with an official standard, but I'm not sure that's worth much.

Several options:

  • "1 KB" means 1024 bytes (as Windows would report it, traditional usage)
  • "1 KB" means 1000 bytes (as Mac OS would report it, IEC usage)
  • "1 KiB" means 1024 bytes (unambiguous, but perhaps unfamiliar terminology)

Not a huge deal since we're only talking a 2.4% difference for files in the KB range, but for MB the difference is ~5% and for GB it's ~8%.

share|improve this question
11  
Pretty much 0% of non-technical users will know what a KiB is, and the large majority are going to think what Windows reports (1024) is correct (if anything). KiB is more "technically" correct but in reality it's just a great way to confuse your users for no reason. To my knowledge the only non-Mac people to use 1000 bytes as a KB are Hard Drive manufacturers, who of course use the smallest possible definition of a kilobyte. – Ben Brocka Nov 11 '11 at 3:34
1  
I agree that "KiB" is a little obscure; I'm not crazy about it (although perhaps non-technical user wouldn't think that much about it if they saw an extra "i" in the middle). – Henry Jackson Nov 11 '11 at 4:23
5  
Quite often a number reported in KB or MB serves as an indication, not as an exact measurement. Unless the difference in reported numbers really, really matters, I wouldn't bother. – Marjan Venema Nov 11 '11 at 7:20
Another option would be to simply show the size in bytes. 123.000.000 bytes for a file is pretty readable but this depends a lot on which kind of sizes you're working with. I'd go for sizes in MB and show a little explanation link – Barfieldmv Nov 11 '11 at 8:25
How important is it for you(r users) to be precise? Also, are the users more Mac or more Windows? I wouldn't bother with KiB (didn't know what it meant until now). Personally, I'd go with 1024. – GUI Junkie Nov 11 '11 at 9:04
show 1 more comment

4 Answers

up vote 7 down vote accepted

A number of issues factor into the perception of what a kilobyte is and how to word it.

The IEC standard names are useless: As Jeff Atwood notes there is simply no industry acceptance of KiB/MiB/GiB. Hard Drive manufacturers and Macs are the only major players using the 1000 bytes definition and Hard Drive manufacturers have absolutely no incentive to differentiate KiB from KB; it makes their drives sound smaller. Macs and Windows have no incentive to use KiB because it's an unnecessary complication for the user. Note that it's been 12 years since the definitions were created, and they're not being adopted anytime soon.

Windows Vs. Mac: Mac thinks (kilobytes are) different. If detecting the OS is a possibility, display a Kilobyte as what the user's OS would. If you can't, the 1024 byte defintion is a good fallback, seeing as 90% of general users are on Windows. Of course your target market might be different.

Scale: The problem with the binary prefix vs the SI prefix is that as the numbers grow, so does the difference between values. Once you get into the Gigabyte range the difference between GB and GiB is substantial--many Windows users are quite disheartened to find their 1 Terabyte hard drive is only 932 Gibabytes in Windows. In my experience, most of them assume Windows is correct rather than the Hard Drive manufacturer--and they have a point, it is in the Hard Drive manufacturer's benefit to use the smallest possible measure for a kilobyte.

Enterprise or Technical users are a special case. If your app is measuring disk or database usage on a server farm, that 8% difference for a GB is huge, and you should allow the user to specify how you display kilobytes, even including a KiB option. These are probably your only users who would care enough to differentiate.

Finally, let's assume people really do all think 1000 bytes is a kilobyte, in their heart of hearts. Since they know file size from what their OS reports, not from counting the bytes manually, using the uncommon 1000 byte count will add unnecessary complexity and your app will look wrong because it conflicts with what the computer says. Users only know how big a file is because their OS tells them.

share|improve this answer
1  
Another important (but complex) thing to note here is that binary exponents were used for technical and performance reasons, clusters on your hard drive clusters are sized in binary increments, so even if you report 1000 bytes as a kilobyte you're treating the byte differently between OS and user, which isn't always ideal. Decimal notation seldom has a place in computer science, and this is one of the very few times that comes to the surface to the user, so it's a tricky issue. – Ben Brocka Nov 11 '11 at 15:31
I also forgot Memory; even if your HDD uses 1000 byte KB, your memory has to use KiB. You're pretty much forced to adopt a second standard because of that. A chip offering 4 gigabytes of RAM can't be 4*10^9. – Ben Brocka Nov 11 '11 at 15:54
+1 for "Users only know how big a file is because their OS tells them." – jberger Nov 11 '11 at 17:16

Make it customizable from a preferences panel. Perhaps use KB as 1024 as the default setting. As Ben Brocka said, KiB is little known.

Further more show the actual size in tooltips, e.g.

Abbreviated label: 42 KB

Tooltip: 43.212 bytes

share|improve this answer
Agreed on KB as default. Keep it simple. – PhillipW Nov 11 '11 at 10:46

There is a Stack Overflow question on this exact topic. The consensus is:

  • 1 kB = 1000 bytes
  • 1 KiB = 1024 bytes

I would use the more technically correct KiB. In other words, divide the number of bytes by 1024 and show that with KiB as the unit. I doubt it's important if users mistakenly think "20 KiB" is 20,000 bytes rather than 20,480.

share|improve this answer
It's not really a concensus so much as an official standard ... en.wikipedia.org/wiki/Kibibyte – jcolebrand Nov 11 '11 at 15:37

Although not technically correct, I used to believe that 1KB = 1000 bytes, 1MB = 1000KB, 1GB = 1000MB etc. I now know after learning about how memory works that this is inaccurate. Once I learned about this, the units used on sticks RAM finally made sense to me (256, 512, etc), as I had always wondered why it was 512 instead of 500.

Anyone who is not an engineer or techy probably thinks in the way that I used to, and can you blame them? What would it help to know that a KB is really 1024 and not 1000?

share|improve this answer
1  
@jcolebrand I understand that, yet I don't see what you are getting at. – Matt Rockwell Nov 11 '11 at 16:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.