255 is eight bits full: FF in hex, 11111111 in binary, 2^8 − 1

The ceiling of an unsigned byte appears as 255 in colour channels, IPv4 octets and checksums alike.

Number bases and coding · Level: Classic result · Updated on 2026-11-10

2^8 − 1 is 255, and one more is 256 — the first number that no longer fits. Put 255 into the base converter and the hexadecimal line says FF, the binary line 11111111, the octal line 377. All three are the same quantity: eight bits, every one set. Unlike the IPv4 space or the UUID address space two pages down the list, a byte is small enough that both screens agree on it to the last digit — the workbench prints 255, the converter prints 255, and nothing anywhere is rounded away.

255 is the value of an opaque pixel's alpha, of a fully-on colour channel in 8-bit sRGB, and of the broadcast octet in 255.255.255.255. The reason it shows up everywhere is structural rather than historical: a byte is eight bits, and the largest number eight bits can name is one less than a power of two — the same reason 99 is the largest two-digit decimal. Its neighbours are worth knowing with it: 256 as the modulus that wraps an unsigned byte, 65535 as the 16-bit maximum, and 2^31 − 1 = 2147483647 as the signed 32-bit ceiling.

Answer

255

How to read it

2^8 − 1 on the workbench. The second link shows 255 in the base converter (FF, 377, 11111111); the third is 256, the value that does not fit.

Source

The byte maximum 2^8 − 1 = 255 is the largest value of an unsigned 8-bit integer, the largest octet of an IPv4 address (RFC 791) and the top channel value of an 8-bit sRGB component or alpha sample (CSS Color Level 4)

Work it in the calculator

These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.