Skip to main content

Decimal to Hex Converter

Convert decimal numbers to hexadecimal (base 16) and back. Essential for web colors, memory addresses, and low-level programming.

Reviewed October 7, 2026 Runs in your browser — inputs are never stored

Hexadecimal

FF

DecimalHexBinary
000
10A1010
15F1111
161010000
255FF11111111
256100100000000

This tool provides general unit conversions for everyday and educational use. For regulated, legal, or scientific applications, verify conversion factors against the applicable official standard.

About the Decimal to Hex Converter

The decimal to hex converter changes ordinary base-10 numbers into hexadecimal (base 16) and back. Hexadecimal uses the digits 0–9 and the letters A–F for 10–15. It is used in web colour codes, memory addresses and many file formats.

How to use it

  1. 1Choose decimal → hex or hex → decimal.
  2. 2Enter the number.
  3. 3Read the result.
  4. 4Copy, share or print the result with the buttons below it.

Worked example

255 = 15 × 16 + 15 = FF in hex, and 2026 = 7EA in hex.

How it works

Hexadecimal digits

0–9 represent 0–9; A=10, B=11, C=12, D=13, E=14, F=15. Each hex digit represents exactly 4 binary bits (a nibble).

Common use cases

  • Working with web colour codes
  • Programming and debugging
  • Reading memory addresses

Frequently asked questions

A:255 decimal = FF hex. This is why web colors like #FFFFFF represent RGB 255,255,255 (white).

Reviewed for accuracy · Last updated October 7, 2026

Conversion factors are based on internationally defined SI units and standard metric/imperial equivalence tables.

CW

CalcWisee Editorial Team

Calculator development and formula review

CalcWisee is an independent site founded by Ayman. Every calculator is built from a published formula or official definition, tested against hand-worked examples before it goes live, and corrected promptly when a reader reports an issue to ayman@calcwisee.com.

Expertise: Financial mathematics, Health and fitness formulas, Applied mathematics, Unit conversion standards