Skip to main content
Calnex LogoCalnex
Developer Tools

Decimal (base 10) → Hexadecimal (Base 16)

Decimal (base 10) → Hexadecimal (Base 16). Convert decimal numbers to hexadecimal notation.

Parameters

Enter the number to convert (digits valid for the selected base)

The base of the input number

Results

Hexadecimal (Base 16)
0xFF

Hexadecimal representation with 0x prefix

Other results (5)
Binary (Base 2)
1111 1111

Binary representation with 4-bit grouping

Octal (Base 8)
377

Octal representation

Decimal (Base 10)
255

Decimal representation

Bit Length8

Number of bits required to represent this number

As Byte (0x00–0xFF)
0xFF

Single-byte hex representation

Example input and result

255
0xFF

Integer input only, up to 4,096 digits. Negative values use a minus sign; this is not a fixed-width two’s-complement representation.

Why Choose Decimal (base 10) → Hexadecimal (Base 16)

Decimal (base 10) → Hexadecimal (Base 16). Convert decimal numbers to hexadecimal notation.

Authoritative References & Sources

MDN — BigInt

View Source