Fuhut
Theme

Decimal to Hex Converter

Free online tool to convert decimal numbers to hexadecimal (hex) format instantly. Fast, accurate, and runs entirely in your browser.

Input
1
Lines: 1Chars: 0Size: 0 B

Configurations

Input values are parsed client-side. Real-time updates occur as you type. Multiple entries can be converted at once using spaces or newlines.

Output

Convert Decimal to Hexadecimal (Base-16) Online

Easily convert base-10 decimal numbers to standard hexadecimal strings. Our free online Decimal to Hex Converter helps developers, programmers, and students convert memory addresses, hex color codes, and byte values instantly. Perform real-time, client-side conversions of any integer length.

The Division-by-Sixteen Method

Positional conversions to base-16 use the division-by-sixteen algorithm. You divide the decimal integer by 16 and record the remainder. Any remainder from 10 to 15 is translated into letters A through F. Once the quotient reaches 0, the remainders are read in reverse order to produce the hex string.

How to Convert Decimal to Hex (Step-by-Step)

  1. Divide: Divide your decimal number by 16 and note the quotient and remainder.
  2. Map Letters: If the remainder is 10-15, convert it to the corresponding letter:
    • 10 = A, 11 = B, 12 = C, 13 = D, 14 = E, 15 = F
  3. Repeat: Divide the new quotient by 16, keeping track of remainders. Stop when you reach a quotient of 0.
  4. Assemble: Write the remainders in reverse order (from bottom to top) to produce the hex string.

Large Integers

Uses high-precision BigInt arithmetic, allowing you to convert massive decimal integers without precision loss.

Developer Formatting

Toggle output prefixes (0x) and switch output casing between UPPERCASE and lowercase depending on your code style.

100% Secure

Conversions execute locally inside your browser, ensuring no data ever leaves your device.

Decimal to Hex Reference Index

Decimal ValueHexadecimal Value
101
100A
150F
3220
6541
10064
255FF

Frequently Asked Questions (FAQ)

To manually convert decimal to hex, repeatedly divide the decimal number by 16 and record the remainder. If the remainder is between 10 and 15, map it to its corresponding hex letter (A=10, B=11, C=12, D=13, E=14, F=15). Once the quotient is 0, write down the remainders in reverse order (bottom to top). For example, 250/16 = 15 r 10 (A), 15/16 = 0 r 15 (F), yielding FA.
Hexadecimal is a base-16 positional numeral system. Since standard Arabic numerals only go from 0 to 9, six additional symbols are required to represent values 10 through 15 as single characters. The letters A, B, C, D, E, and F were adopted internationally for this purpose.
Yes, your conversion is completely secure. The script operates entirely client-side using JavaScript running in your local browser sandbox. No input integers, hexadecimal outputs, or log records are uploaded to Fuhut servers.