255 in Hexadecimal

Explained with a place-value breakdown — reference tables, charts, and a live converter.

255 in hexadecimal is ff (0xff).

Convert any value

Hexadecimal(0x…)ff= 0xff

Step by step

  1. 1. Divide by the base repeatedly

    Divide 255 by 16 again and again, noting the remainder each time:

  2. 2. Collect the remainders

    255 ÷ 16 = 15, remainder f · 15 ÷ 16 = 0, remainder f

  3. 3. Read the remainders bottom to top

    Reading the remainders from bottom to top gives ff — that is 255 in hexadecimal.

Place-value breakdown

Each digit of ff is multiplied by its place value (a power of 16); the sum is 255 (in decimal).

DigitPlace valueContribution
F161 = 1615 × 16 = 240
F160 = 115 × 1 = 15
Sum255

255 in all four bases

Number baseRepresentationWith prefix
Binary111111110b11111111
Octal3770o377
Decimal255
HexadecimalFF0xFF

Each digit's contribution

FF
Hover a bar to see its place value

Digit grid

F161F160
Hover a cell to see its place value

Digit count by number base

8Binary3Octal3Decimal2Hex
Hover a bar to see the representation

Common values reference

DecimalBinaryOctalHexadecimal
0000
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
16100002010
321000004020
64100000010040
1281000000020080
25511111111377FF
256100000000400100
1024100000000002000400

Powers of 16

PowerIn hexadecimalDecimal value
16011
1611016
162100256
16310004096
1641000065536
1651000001048576
166100000016777216
16710000000268435456
1681000000004294967296
169100000000068719476736
1610100000000001099511627776
161110000000000017592186044416
16121000000000000281474976710656

About number bases and place value

A number base (radix) defines how many digits are used and what each position is worth. Decimal uses ten digits and powers of ten, binary uses just two digits and powers of two, and hexadecimal uses sixteen digits and powers of sixteen.

The value itself never changes — only how it is written. These conversions are pure integer math and exact: 255 is always 0xFF.

Where hexadecimal shows up

Hex appears everywhere in computing: CSS color codes, memory addresses, MAC addresses, and byte values. One byte (8 bits) fits exactly into two hex digits (00–FF), i.e. 0 to 255.

Where number-base conversions are used

Number-base conversions are core to computing — decimal, binary, octal, and hexadecimal represent the same value in different bases.

  • Computers store everything in binary (base 2); hexadecimal (base 16) is a compact way for humans to read it.
  • One hexadecimal digit maps to exactly four binary digits (a nibble).
  • Colour codes like #FF8800 are hexadecimal: each pair is a 0–255 value for red, green, and blue.

Frequently asked questions

What is 255 in Hexadecimal?

255 in hexadecimal is ff (0xff).

How do you convert 255 to hexadecimal?

Repeatedly divide 255 by 16 and read the remainders from bottom to top — that gives ff. The place-value table above shows each step.

What is 255 in binary and hexadecimal?

255 is 0b11111111 in binary and 0xff in hexadecimal.

Why is hexadecimal used?

Hexadecimal (base 16) is compact: each hex digit maps to exactly four bits (one nibble). That is why color codes, memory addresses, and byte values are almost always written in hex — 255 is FF, far shorter than 11111111.

Are these conversions exact?

Yes. Converting between number bases is pure integer math and perfectly exact — the same value, just written a different way. 255 is always 0xFF.

Convert more

The number base converter covers binary, octal, decimal, and hexadecimal with an exact place-value breakdown.

See all converters →