💻 Decimal to Hexadecimal Converter

Convert Decimal (decimal) to Hexadecimal (hex) instantly. Decimal to hexadecimal conversion.

1 unit =
From
To
Formulae.g. 255 = FF
UnitNameValue
binaryBinary (Base 2)
hexHexadecimal (Base 16)
octalOctal (Base 8)

Quick Answer

Example: 255 (Decimal) = FF (Hexadecimal)

Method: Repeatedly divide by 16 and record remainders. E.g. 255÷16=15r15(F), 15÷16=0r15(F) → FF₁₆.

Decimal is base-10; Hexadecimal is base-16. Use the converter above for any value instantly.

Worked Examples

255 = FF — the most common hex conversion
25510 = FF16
Decimal 255 → Hexadecimal FF
16 = 10 hex — powers of 16
1610 = 1016
Decimal 16 → Hexadecimal 10
256 = 100 hex — 2⁸
25610 = 10016
Decimal 256 → Hexadecimal 100
4095 = FFF hex — 12-bit max
409510 = FFF16
Decimal 4095 → Hexadecimal FFF

Decimal to Hexadecimal Reference Table

Common values from 0 to 1,048,576 — powers of 2 and standard computing values

Decimal (base 10)Hexadecimal (base 16)Notes
00Zero
11One
22Two
33
44Four
55
66
77
88Eight
99
10ATen
11B
12C
13D
14E
15FMax nibble (4-bit)
1610One hex digit
32202⁵
64402⁶
128802⁷
255FFMax byte
2561002⁸
5122002⁹
10244001 KiB
20488002 KiB
409610004 KiB
32768800032 KiB
65535FFFFMax 16-bit unsigned
65536100002¹⁶
10485761000001 MiB (2²⁰)

How to Convert

Divide by 16

Divide by 16, note remainder as hex digit (10=A, 11=B... 15=F). Read bottom-to-top.

255 = FF

The max byte value 255 in hex is FF — memorize this pair.

16¹=16, 16²=256

Powers of 16: 1, 16, 256, 4096. Know these for quick mental conversion.

Who Uses This Converter?

Software Developer

Converts between binary, hex, and decimal daily for debugging, bitmasking, and memory address analysis.

Computer Science Student

Learns number base conversions as a fundamental concept in computer architecture and digital logic courses.

Network Engineer

Works with IP addresses, subnet masks, and MAC addresses in binary, decimal, and hex representations.

Embedded Systems Engineer

Programs microcontrollers using binary bit patterns and hex register values for hardware configuration.

Digital Electronics Designer

Designs logic circuits using binary truth tables and checks hex values on oscilloscopes and analyzers.

Cybersecurity Analyst

Reads hex dumps, analyzes binary data, and decodes encoded strings during reverse engineering and forensics.

Frequently Asked Questions

About Decimal and Hexadecimal Number Systems

Decimal (Base 10)

The decimal (base-10) number system uses ten digits (0–9) and is the universal numeral system for human mathematics, commerce, and everyday life. It is almost certainly based on the ten fingers of the human hand — 'digit' comes from the Latin digitus meaning finger.

The decimal system with positional notation and zero was developed in India (5th–7th century CE) and transmitted to Europe via Arabic mathematicians — which is why it is also called the Hindu-Arabic numeral system. It replaced Roman numerals in European commerce by the 16th century.

Interesting fact: Not all cultures chose base-10. Babylonians used base-60 (preserved in our 60 seconds, 60 minutes, 360 degrees). The Mayans used base-20. The Yuki people of California used base-8, counting the spaces between fingers rather than the fingers themselves.

Hexadecimal (Base 16)

The hexadecimal (base-16) system uses digits 0–9 and letters A–F (where A=10, B=11, C=12, D=13, E=14, F=15). Hexadecimal became the standard shorthand for binary in computing because exactly 4 bits = 1 hex digit, making byte values compact: 1 byte (8 bits) = 2 hex digits (00–FF).

Hex is ubiquitous in programming: memory addresses (0x7FFF0000), color codes (#FF5733), MAC addresses (AA:BB:CC:DD:EE:FF), IPv6 addresses, and error codes all use hex. The prefix '0x' in code signifies hexadecimal. Every programmer encounters hex daily.

Interesting fact: HTML/CSS color #FFFFFF (white) = RGB(255, 255, 255) = binary 11111111 11111111 11111111. The hex system makes this immediately readable — each pair of hex digits is one color channel. Web color #FF0000 is pure red: maximum red (FF=255), zero green (00), zero blue (00).

About Decimal to Hexadecimal Conversion

Decimal to hex is needed when working with colors (#RRGGBB), memory addresses (0x...), and low-level programming. 255=FF, 256=100, 65535=FFFF. The '0x' prefix in code signals hex. Hex makes large binary values human-readable.

Use the converter above for any value. Results are exact — numeral base conversions involve no rounding or approximation.