Skip to content
Sealpaste

Delete all recent work?

This removes the 0 items saved in this browser. Your settings stay.

Stop saving recent work?

New work won't be saved in this browser. The 0 items already saved can stay or go.

Hex to Decimal

Ready
Runs in your browser. Nothing you paste is uploaded unless you share it.

Convert hex to decimal: 0xFF, #FF8800 parts or a 64-digit hash, exact, with each step and signed 32 and 64-bit values

Paste a hex value, with or without 0x, and read it in decimal, exact for long values, with each digit times its power of 16 written out.

How to use it

  1. Paste hex: 1F4, 0x1F4 and 1f4 read the same; spaces between bytes are fine.
  2. Read the decimal value on top and the sum by hand under it.
  3. Pick 32 or 64 in Bits to read the same value as a signed integer.

Examples

A short value

Input
0x1F4
Result
500

1×256 + 15×16 + 4×1

The largest signed 32-bit integer

Input
7FFFFFFF
Result
2,147,483,647

FFFFFFFF as signed 32-bit

Input
FFFFFFFF
Result
Unsigned  4294967295
Signed    -1

Bits: 32.

How to convert hex to decimal by hand

Each hex digit is worth 0 to 15, and each place is 16 times the one to its right. Multiply each digit by 16 to the power of its place, counting from 0 on the right, and add: 1F4 is 1×16² + 15×16¹ + 4×16⁰ = 256 + 240 + 4 = 500.

HexABCDEF
Decimal101112131415

Colors, one byte a channel

A CSS color like #FF8800 is three bytes: red FF, green 88, blue 00. Convert each pair on its own: 255, 136 and 0, which is rgb(255 136 0).

Questions

Is 0xFF the same as FF?
0x is only a prefix that says the digits are hex, so both are 255. In auto mode the page needs the 0x or a letter a–f to know a value is hex; on this page every value is read as hex, so 10 is sixteen.
Can it convert a SHA-256 hash to decimal?
Yes. A 64-character hash is a 256-bit number, and the page keeps every one of its decimal digits, up to 78; calculators that use floating point round it.
Is the number I type uploaded?
No. Everything runs in your browser, so your numbers stay on your device. Nothing you paste is uploaded unless you share it.

Related tools