🔢 Math Converter
Hex Converter
Convert hexadecimal to decimal, binary, and octal — and vice versa. Includes a hex color preview and a complete reference table.
Digits 0–9 and letters A–F (case insensitive)
DECIMAL (Base 10)—tap to copy
BINARY (Base 2)—tap to copy
OCTAL (Base 8)—tap to copy
HEX (Uppercase)—tap to copy
Enter any positive integer
HEXADECIMAL—tap to copy
BINARY—tap to copy
OCTAL—tap to copy
HEX (Lowercase)—tap to copy
Only 0s and 1s allowed
HEXADECIMAL—tap to copy
DECIMAL—tap to copy
OCTAL—tap to copy
HEX GROUPS (4-bit)—tap to copy
Enter 6 hex digits with or without # prefix
Enter a hex color above
HEX COLOR—
RED (0–255)—
GREEN (0–255)—
BLUE (0–255)—
RGB Value—
CSS Color—
Complete hex reference: 0–255 in all number systems
| Decimal | Hex | Binary | Octal |
|---|
📖 How to Use the Hex Converter
1
Hex → All tab — type any hex number (0–9, A–F) and get decimal, binary, and octal results instantly.
2
Dec → Hex tab — enter any decimal integer and convert to hexadecimal, binary, and octal.
3
Binary → Hex tab — enter a binary number to get its hex, decimal, and octal equivalents with 4-bit grouping.
4
Hex Color tab — enter a 6-digit hex color code to see the color preview and RGB breakdown.
5
Tap any result card or use the Copy buttons to copy values to your clipboard.
⚡ Why Use Our Hex Converter?
HEX
5 Conversion Modes
Hex, decimal, binary, octal, and hex color in one tool.
🎨
Color Preview
Enter a hex color code and see the actual color instantly.
📋
Tap to Copy
Tap any result card or use copy buttons — works on all devices.
📱
Mobile-Friendly
Works perfectly on all phones, tablets, and desktops.
📊
Reference Table
Complete 0–255 table in all four number systems.
🆓
100% Free
No sign-up — completely free forever.
❓ Frequently Asked Questions
Hexadecimal is a base-16 number system using digits 0–9 and letters A–F (where A=10, B=11, C=12, D=13, E=14, F=15). It is widely used in computing, color codes, memory addresses, and HTML/CSS colors because it compactly represents binary data.
Multiply each hex digit by 16 raised to its positional power (starting from the right at power 0). Example: 1A = 1×16¹ + 10×16⁰ = 16 + 10 = 26. Use the Hex → All tab and tap Steps to see the full working.
A hex color code is a 6-digit hexadecimal value representing a color in RGB format. The first two digits = red, next two = green, last two = blue. For example, #3b9de8 means R=59, G=157, B=232 — a medium blue color. Use the Hex Color tab to see any color.
🔗 Related Math Calculators
© 2025 MathTools · Privacy Policy · Terms · Contact