Hexadecimal Calculator

Perform arithmetic operations and conversions with hexadecimal, decimal, binary, and octal numbers.

Enter a hexadecimal value
For operations
Calculated automatically
Copied!

Number Systems Explained

Hexadecimal (Base 16)

Uses digits 0-9 and letters A-F (where A=10, B=11, C=12, D=13, E=14, F=15). Commonly used in computing for memory addresses and color codes.

Example: 1A3F in hex = 6719 in decimal

Decimal (Base 10)

The standard number system used in everyday counting, with digits 0-9.

Example: 255 in decimal = FF in hex

Binary (Base 2)

Uses only digits 0 and 1. The fundamental language of computers and digital systems.

Example: 11111111 in binary = 255 in decimal = FF in hex

Octal (Base 8)

Uses digits 0-7. Historically used in computing, still used in Unix file permissions.

Example: 377 in octal = 255 in decimal = FF in hex

Bitwise Operations

  • AND: Result has 1 only where both inputs have 1
  • OR: Result has 1 where at least one input has 1
  • XOR: Result has 1 where inputs differ
  • Left Shift: Multiplies by 2 for each shift position
  • Right Shift: Divides by 2 for each shift position

Common Number Conversions

Decimal Hexadecimal Binary Octal
0 0 0 0
15 F 1111 17
16 10 10000 20
255 FF 11111111 377
256 100 100000000 400
4095 FFF 111111111111 7777