Convert a Number
Enter a number in any base to see it converted to binary, octal, decimal, hexadecimal, and any custom base 2-36.
Try an Example
Pick a scenario to see how the calculator works, then adjust the values
ASCII Letter A
Convert the ASCII code for uppercase A (65) across all bases.
Key values: Decimal 65 · Binary 1000001 · Hex 41
Byte Maximum
The largest value a single byte can hold (255).
Key values: Decimal 255 · Binary 11111111 · Hex FF
Hex Color Code
Convert a common hex color code (deep sky blue) to other bases.
Key values: Hex 00BFFF · Decimal 49151 · Binary nibbles
This calculator is also known as Hex Converter.
Read the complete guideWhat is Hexadecimal?
Hexadecimal extends decimal with six additional digits: A (10), B (11), C (12), D (13), E (14), F (15). This gives 16 unique single-character symbols, hence "hexadecimal" (hex = 6, decimal = 10).
Why Hex is Used in Computing
Hex is used because each hex digit corresponds to exactly 4 binary bits:
- Memory addresses: 0x7FFF0000
- CSS colors: #FF5733
- MAC addresses: AA:BB:CC:DD:EE:FF
- Byte inspection in hex editors
Examples
CSS Color Code
Convert #FF5733 to RGB decimal values.
FF = 255, 57 = 87, 33 = 51. So RGB(255, 87, 51).
Key takeaway: Each pair of hex digits in a color code represents one RGB channel (0-255).
Memory Address
Convert hex DEADBEEF to decimal.
13*16^7 + 14*16^6 + 10*16^5 + 13*16^4 + 11*16^3 + 14*16^2 + 14*16 + 15 = 3735928559.
Key takeaway: DEADBEEF is a classic test value in computing, equal to 3,735,928,559 in decimal.
Byte Max Value
What is FF in decimal?
15 * 16 + 15 = 255.
Key takeaway: FF hex equals 255 decimal, the maximum value of a single byte (8 bits all set to 1).
Working with Hex in Practice
Tips for using hexadecimal effectively:
- Memorize the hex-to-nibble table (0-F to 0000-1111)
- Use hex for CSS color codes -- each pair is an RGB channel (00-FF)
- Remember common values: FF = 255, 80 = 128, 7F = 127
- Use 0x prefix in code to distinguish hex from decimal literals
Frequently Asked Questions about Hex Converter
What does 0x mean before hex numbers?
The 0x prefix is a programming convention (used in C, JavaScript, Python, and others) to indicate that the following digits are hexadecimal, not decimal.
Is hex case-sensitive?
No. Both uppercase (A-F) and lowercase (a-f) represent the same values. Convention is to use uppercase in output.
How do I convert hex colors to RGB?
Split the 6-digit hex code into three pairs: the first pair is Red, the second is Green, the third is Blue. Convert each pair from hex to decimal. For example, #1A8FE3 gives R=26, G=143, B=227.
Plate
Specialized Calculators
Choose from 6 specialized versions of this calculator, each optimized for specific use cases and calculation methods.
Conversion
6 CalculatorsBinary to DecimalBinary to Decimal Converter
Convert binary numbers to decimal instantly. See the positional breakdown showing each bit\'s power-of-2 contribution.binary · decimal · base-2 · +2
Try This Calculator
Decimal to BinaryDecimal to Binary Converter
Convert decimal numbers to binary. See the repeated division method step-by-step with remainders reading bottom to top.decimal · binary · base-10 · +2
Try This Calculator
Hex to DecimalHex to Decimal Converter
Convert hexadecimal to decimal. Perfect for color codes, memory addresses, and debugging register values.hexadecimal · decimal · base-16 · +3
Try This Calculator
Decimal to HexDecimal to Hexadecimal Converter
Convert decimal numbers to hex. Shows each division step with remainders mapped to hex digits 0-F.decimal · hexadecimal · base-10 · +2
Try This Calculator
Binary to HexBinary to Hexadecimal Converter
Convert binary to hex using the 4-bit nibble grouping shortcut. Each group of 4 bits equals one hex digit.binary · hexadecimal · base-2 · +3
Try This Calculator
Octal to DecimalOctal to Decimal Converter
Convert octal (base 8) numbers to decimal. Interpret Unix chmod values like 755.octal · decimal · base-8 · +3
Try This Calculator
Further plates · 6 Calculators
Related Calculators
More Math calculators
BMI Calculator
Calculate Body Mass Index (BMI) based on height and weight
Try This Calculator
Mortgage Calculator
Calculate mortgage payments, affordability, and amortization schedules for property loans.
Try This Calculator
Equation Solver
Solve any equation step by step -- linear, quadratic, cubic, polynomial, and transcendental. Free solutions with interactive graph and discriminant analysis.
Try This Calculator
Sales Tax Calculator
Calculate sales tax, final price, and pre-tax amount for any purchase
Try This Calculator
Basic Calculator
Perform basic arithmetic operations: addition, subtraction, multiplication, division, and percentage calculations.
Try This Calculator
Derivative Calculator
Compute symbolic derivatives of any function with step-by-step solutions and an interactive graph. Supports chain rule, product rule, higher-order derivatives, and more.
Try This Calculator