Hexadecimal Converter — Hex to Decimal, Binary, Octal

The Hexadecimal Converter converts hex numbers to decimal, binary, and octal instantly. Enter any hex value (0-9, A-F) and all four base representations appear simultaneously with one-click copy. Step-by-step working shows the positional expansion for hex-to-decimal and repeated division for decimal...

HEX CONVERTER

CONVERT FROM

Hexadecimal (base 16)

FF

input

Decimal (base 10)

255

Binary (base 2)

11111111

Octal (base 8)

377

Bit length

8

Bytes

1

0x prefix

0xFF

STEP-BY-STEP

1

Hex: FF

2

Expand: F×16^1 = 240 + F×16^0 = 15

3

= 255 (decimal)

4

Decimal 255 ÷ 2 repeatedly → binary: 11111111

5

Binary nibbles: 1111 1111 → Hex: FF

QUICK EXAMPLES

BIT PATTERN

BIT PATTERN

Byte 1

1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0

HEX DIGIT TABLE

00
11
22
33
44
55
66
77
88
99
A10
B11
C12
D13
E14
F15
Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    The converter defaults to Hexadecimal input. Type your hex number using digits 0-9 and letters A-F (case insensitive). The 0x prefix is optional and stripped automatically.

  2. 2

    Switch the input base using the four buttons if you want to convert from decimal, binary, or octal instead. All four conversions always show simultaneously.

  3. 3

    The step-by-step panel shows the positional expansion for hex input (each digit × its power of 16) and the repeated division method for decimal-to-hex conversion.

  4. 4

    The hex digit reference table on the right shows all 16 hex digits (0-F) with their decimal equivalents. The bit pattern visualiser shows the binary representation in coloured bit cells.

  5. 5

    Click any Copy button next to a result to copy that value to clipboard. Use the quick example buttons to try common values: FF (255), 1A (26), DEAD (57005), FFFF (65535).

WORKED EXAMPLE

FF hex: F×16^1 + F×16^0 = 240+15 = 255 decimal = 11111111 binary = 377 octal. 1A hex: 1×16+10 = 26 decimal = 11010 binary = 32 octal. Decimal 255 to hex: 255÷16=15 r15(F), 15÷16=0 r15(F) → FF. Bit pattern FF = 11111111 (8 bits all on). DEAD hex = 57005 decimal.

FORMULAS

HEX CONVERSION REFERENCE
NAMEFORMULADESCRIPTION
Hex to decimalSum of (digit × 16^position)FF = 15×16 + 15×1 = 255
Decimal to hexRepeated division by 16, read remainders bottom-up255 ÷ 16 = 15 r 15(F), 15 ÷ 16 = 0 r 15(F) → FF
Hex to binaryReplace each hex digit with its 4-bit binaryFF → 1111 1111
Binary to hexGroup bits in 4 from right, convert each1010 1111 → A F → AF
Hex digit valuesA=10, B=11, C=12, D=13, E=14, F=15Letters extend digits beyond 9
1 byte in hex2 hex digits = 8 bits = 0x00 to 0xFFMax byte value: FF = 255
0x prefix0xFF = 255 (hex prefix convention)Used in code: 0x1A, 0xFF, 0xDEAD
Nibble1 hex digit = 4 bits = 1 nibbleHalf a byte

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE NUMBER THEORY CALCULATORS

Was this calculator helpful?

Last updated: April 29, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.