Excel decimal to hex function dec2hex guide

In Excel, =DEC2HEX(n[, places]) returns hex text for integer n; compare results with our Decimal to Hexadecimal converter for the same integer.

Detailed answer

DEC2HEX takes a signed 10-bit style range in older docs—practically, use it on integers Excel can represent. Optional `places` pads with leading zeros. Our web converter shows hex digits (optional 0x) for the parsed integer without Excel’s cell limits. If you need two-digit channel bytes, pad manually or match Excel’s `places` argument.

Relationship context

Spreadsheets expose DEC2HEX/HEX2DEC for quick engineering tasks; web calculators are useful when you want consistent radix rules outside the workbook.

Quick conversion table

Decimal (input)Hexadecimal (output)
00
10x1
20x2
30x3
40x4
50x5
60x6
70x7
80x8
90x9
100xa
150xf
160x10
Decimal (input)Hexadecimal (output)
110xb
320x20
640x40
1280x80
2560x100
5120x200
10240x400
20480x800
40960x1000
81920x2000
163840x4000
327680x8000
655350xffff

More Decimal converters

Dedicated pages from Decimal to every other format (binary, octal, decimal, hexadecimal, character), with the same parsing rules as the main Number System Converter.