Skip to content
MyDailyTool

Hex ⇄ Decimal

Convert between hexadecimal and decimal numbers. Supports uppercase and lowercase hex input — useful for color codes, memory addresses, and network protocols.

How to use the hex ⇄ decimal

Hex digits 0–9, A–F. Case insensitive.

Formula & explanation

Each hex digit represents 4 bits.

Examples

FF = 255. 1A = 26. C0FFEE = 12,648,430.

Frequently asked questions

What is hexadecimal used for?
Hex is used in programming for memory addresses, color codes (e.g. #FF5733), and representing binary data compactly — each hex digit maps to exactly 4 bits.
How do I convert hex to decimal?
Multiply each hex digit by 16 raised to its positional power and sum the results. For example, 1A = (1 × 16) + (10 × 1) = 26.
What letters are used in hexadecimal?
Hex uses digits 0–9 and letters A–F, where A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15. Input is case-insensitive.
Why do CSS color codes use hex?
RGB colors pack three 0–255 values into a compact 6-digit hex string (2 digits per channel), making them easy to read and copy in code and design tools.

Related number & code tools