snaptools
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-07-09

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

No. The conversion runs entirely in your browser, so nothing you enter leaves your machine.
Divide the number by 16 repeatedly, writing down each remainder; the remainders read bottom-to-top are the hex digits. 255 gives 15 and 15, which are F and F. This tool does it instantly.
Hex is the standard notation for byte values, colours (like
Hex letters are shown in upper case (FF), the usual convention. Upper and lower case represent the same value.
It handles standard integer values comfortably. For extremely large numbers, precision follows normal integer limits.

Use this via API

Get a free API key →
curl -X POST https://snaptools.dev/api/v1/tools/decimal-to-hex \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"number":"255"}'
Esc
↑↓ navigate open Esc close