Enter a hexadecimal value to convert it to decimal, binary, and octal. If you enter 6 hex digits, RGB color values are also shown. Or switch to arithmetic mode to add, subtract, multiply or divide hex numbers.
How to use this calculator
For conversion: enter any hexadecimal string (0-9, A-F). Add # or 0x prefix — it is removed automatically.
A 6-digit hex code (e.g. FF8C00) also shows the equivalent RGB color values.
For arithmetic: enter two hex values and select the operation.
HTML/CSS colors like #FF5733 are 3 pairs of hex digits (R=FF, G=57, B=33).
Memory addresses in computing are conventionally written in hexadecimal.
How to interpret your result
Hex to decimal
Each digit's value is multiplied by 16 raised to its position: 1A3F = 1×16³ + 10×16² + 3×16 + 15 = 6719.
RGB colors
For 6-digit hex codes, the first two digits are red, the middle two are green, and the last two are blue, each ranging from 00 (0) to FF (255).
Frequently asked questions
What is hexadecimal?
Base-16 notation using digits 0-9 and letters A-F. 1 hex digit represents 4 binary bits.
How do I convert hex to decimal?
Multiply each hex digit by 16 raised to its position (0 from the right) and sum. 2A₁₆ = 2×16 + 10 = 42₁₀.
What does a hex color code mean?
A 6-digit hex color like #FF5733 encodes RGB values: FF=255 red, 57=87 green, 33=51 blue.
Related calculators
Binary Calculator — Convert binary numbers to decimal, hexadecimal, and octal — or perform binary arithmetic (add, subtract, multiply, divide).
Scientific Notation Calculator — Convert any number to scientific notation and perform arithmetic (add, subtract, multiply, divide) on numbers in scientific notation.
Factor Calculator — Find all factors, factor pairs, prime factorization, and check if a number is prime for any positive integer.