255 - Binary, Octal, Decimal & Hex Conversion

Maximum 8-bit unsigned integer (0xFF). In decimal: 255. In hexadecimal: 0xFF. In binary (grouped): 1111 1111. In octal: 0o377. Use the converter below for other values.

Input

Binary
1111 1111
Octal
0o377
Decimal
255
Hexadecimal
0xFF

All bases for 255

Base Value
Binary 1111 1111
Octal 0o377
Decimal 255
Hexadecimal 0xFF

← Back to full Binary Hex Decimal Converter

255 Base Conversion FAQ

What is 255 in binary?

255 in binary is 11111111 (1111 1111 with nibble spacing). Each hex digit maps to four bits, which is why 0xFF and grouped binary align visually. Copy the spaced form when documenting registers, teaching nibble alignment, or pasting constants into code review comments.

What is 255 in hexadecimal?

Decimal 255 equals 0xFF in hexadecimal and 0o377 in octal. Hex is compact for byte-aligned constants in C, Rust, and JavaScript (0x prefix). Paste either prefixed form into source after confirming the decimal column matches your intended magnitude exactly first.

Why is 255 / 0xFF important in computing?

255 is the largest value that fits in an 8-bit unsigned byte (written 0xFF in hex). You will see it in RGB color channels (0-255), IPv4 netmasks, and bitmasks. Use the binary and hex columns here to double-check constants in firmware, networking, or graphics code.

How do I convert between bases manually?

Convert to decimal first using positional notation, then divide repeatedly by the target base and record remainders. For hex↔binary, expand each hex nibble to four bits instead of converting through decimal. This page shows all four bases at once so you can spot-check homework, code review, or lecture examples quickly.

Base converter vs Windows Calculator Programmer mode?

Programmer mode is excellent for chained bitwise operations and live bit toggling. This browser tool is faster when you need all four representations copied into documentation, pull requests, or lecture notes without switching apps or remembering mode shortcuts on every machine.

Where is the full binary hex decimal converter?

The main converter accepts any valid value in binary, octal, decimal, or hex with optional 0b, 0o, or 0x prefixes. Visit /dev-tools/binary-hex-decimal-converter/ for the interactive tool with digit validation, nibble-grouped binary output, and one-click copy buttons for every base representation.

Sources & review

Last reviewed:

Related values

Full tool