Your IPv4 address:
Operating system:

Binary, decimal and hexadecimal numbers

A subnet mask shows 255, a colour code shows FF and a diagram shows eight ones in a row. All three are the same value written in different bases: decimal with ten digits, hexadecimal with sixteen, binary with two. One rule links them, and you can check any conversion yourself.

One rule for every base

Each position is worth the base times the position to its right. In binary the positions are worth 1, 2, 4, 8 and so on, so 1010₂ is 8 + 2, which is 10₁₀. Hexadecimal continues after 9 with A to F, so the same value is A₁₆.

Why bytes are written as two hex digits

Hexadecimal is compact because one hex digit represents four bits. A byte has eight bits, so it fits in two hex digits: 11111111₂ = 255₁₀ = FF₁₆.

Reading chmod numbers

Unix file permissions use three bits per digit. Calculate read, write and execute separately for owner, group and others: read is worth 4, write 2 and execute 1. A 7 grants all three, and a 5 grants read and execute.

Checking a conversion

Identify what is measured, the input units and the expected output format. Write the conversion down, perform it, and verify it with the reverse operation. Hex digits mean the same in either case: FF and ff are one value. If a system insists on one form, the 2ip case converter changes the case of text.

Keep notation apart from units. Decimal, binary and hexadecimal are ways of writing one number; bits and bytes are different quantities. A download time worked out from them remains an estimate, because the rate varies and protocols add overhead.