Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)

Decimal to Hexadecimal

Convert decimal numbers to hexadecimal. Perfect for creating color codes, working with memory addresses, and programming applications.

What is the Decimal to Hexadecimal Converter?

This tool converts decimal numbers (base-10) to hexadecimal (base-16), the preferred format for many computing applications.

Why Convert Decimal to Hex?

Hexadecimal is widely used in:

  • Web design — creating color codes (#RGB)
  • Programming — memory addresses, byte values
  • Hardware — MAC addresses, device IDs
  • Cryptography — hash representations

The Conversion

Divide by 16 repeatedly and convert remainders (10=A, 11=B, 12=C, 13=D, 14=E, 15=F).

Example: 255 = 15×16 + 15 → FF

How to Use

  1. Enter decimal number — type any positive integer
  2. View hex result — appears in uppercase (A-F)
  3. Copy for use — add 0x prefix for code, # for CSS

Color Code Examples

  • 255, 0, 0 → FF0000 (Red)
  • 0, 255, 0 → 00FF00 (Green)
  • 0, 0, 255 → 0000FF (Blue)
  • 255, 255, 255 → FFFFFF (White)

Grouping

Results are grouped in pairs for readability (e.g., DE AD BE EF).

0123456789
0123456789ABCDEFabcdef
0x

Common Conversions

10 = A
15 = F
16 = 10
255 = FF
256 = 100
65535 = FFFF

Decimal (Base-10)

The standard number system we use daily. Perfect for human calculations and display.

Hexadecimal (Base-16)

Compact representation ideal for computing. One hex digit = 4 binary bits.

Enter any positive integer
255 in decimal = FF in hex
Result can be used directly in CSS colors
Prefix with 0x for programming use
Want to learn more? Read documentation →
1/5
Start typing to search...
Searching...
No results found
Try searching with different keywords