Computer files are binary, measured as a power of 2 so 1 KiB = 1024 Bytes. This is unlike Base 10 numbers where for example 1 Megapixel = 1,000,000 pixels.
Many documents still refer to byte measues with the old-style prefixes: KB,MB,GB…
These are case sensitive and easily confused with bits: Kb,Mb,Gb…
1 Byte = 8 Bits.
1 KB ≠ 1 Kb
bits are used to measure network or download speeds,
Bytes are used to measure file sizes.
10BASE-T = 1.25 MiB per second. (10 Mb/Sec)
Hard disc = 30 MiB per second. (240 Mb/Sec)
Gigabit Ethernet = 125 MiB per second. (1,000 Mb/Sec)
Solid state disc = 250 MiB per second. (2,000 Mb/Sec)
Fibre Channel = 2550 MiB per second. (20,400 Mb/Sec)
Kilo, Mega, Giga, Tera, Peta, Exa, Zeta, Yotta... Mnemonic:
“Kilted Men Given Testosterone Perform Exceedingly Zealous Yoga” ~ David Wu
CERTUTIL - Convert to Base64
kbTS2419 - How OS X and iOS report storage capacity (in OS X 10.6 and above Apple use Base 10)
Tony Marston's Hex/Octal/Base 36 converter
Text Utils / Regex