0x
Conversion

Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal.

Conversions
Decimal
Binary
Octal
Hex

Number Base Reference

DecimalBinaryOctalHex
0000000
10101012A
15111117F
16100002010
25511111111377FF
256100000000400100

Frequently Asked Questions

Computers use binary (base 2) because electronic circuits have two states: on (1) and off (0). All data — text, images, code — is ultimately stored as binary. Hexadecimal is a convenient shorthand for binary since each hex digit represents exactly 4 bits.
0xFF is hexadecimal notation for 255 in decimal, or 11111111 in binary. The "0x" prefix indicates a hex number. In web colors, #FF0000 means 255 red, 0 green, 0 blue — pure red.