Skip to main content
chain
⇄
Decimal to Hex
⌃⏎ run · ⎋ clear · / focus input
Decimal · base 10
Hexadecimal · base 16
send result to
no matches
Binary · base 2
Octal · base 8
Enter a decimal value above to convert it
// about this tool

Decimal to Hex Online

Updated 2026-10-24

Convert decimal to hexadecimal online for free. Type any base-10 number and SnapTools shows its hex value instantly, in your browser. Nothing you enter is uploaded.

Going from a plain number to hex is a common need when you are writing a colour, a byte literal, or a memory value: 255 becomes FF, 26 becomes 1A. This converter runs the repeated-division-by-16 for you and returns clean upper-case hex, ready to paste into code or a stylesheet. For every base at once, use the Number Base Converter.

// how to use

  1. 1 Type or paste a decimal (base-10) number into the input.
  2. 2 SnapTools converts it to hexadecimal as you type.
  3. 3 Copy the hex result, or open the Number Base Converter for all bases at once.

// examples

Byte value
Input
255
Output
FF
Small number
Input
26
Output
1A

// common uses

Writing a decimal value as a hex byte or colour Producing hex literals for code or config Learning base-16 positional notation Checking a manual decimal-to-hex conversion

// faq

When did A-F become the standard way to write hex digits above 9?
Early computing used several rival notations for the digits above 9. IBM standardized the now-familiar 0-9 then A-F digits around 1963 with the System/360 architecture, and the convention spread across the industry from there.
How do I convert decimal to hex by hand?
Keep dividing by 16 and keep track of each remainder; once the quotient reaches zero, reading those remainders back from the last one to the first gives the hex digit string. Working through 255, both divisions by 16 leave a remainder of 15, which is F, so the result is FF.
Why would I need hexadecimal?
Hex is the standard notation for byte values, colours (like
Is the output upper or lower case?
Hex letters are shown in upper case (FF), the usual convention. Upper and lower case represent the same value.
What is the largest number it handles?
Ordinary decimal integers convert without any issue. Only once a value climbs past the safe-integer ceiling used internally (around nine quadrillion) does floating-point rounding start to matter, the same limit that applies to any of these numeric tools.

Use this via API

Get a free API key →
curl -X POST https://thesnaptools.com/api/v1/tools/decimal-to-hex \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"number":"255"}'