dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day! A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Tool to convert to hexadecimal base (base 16) or from hexadecimal base. Numbers written in hexa use digits from 0 to 9 and letters from a to f.

Answers to Questions

How to write a number in base 16?

For complete explanations on how to convert from base 10 to base 16, see the base-N conversion tool.

Example: $ 127_{(10)} $ (127 in base 10) is written $ 7f_{(16)} $ (7f in base 16)

How to convert an hexadecimal number

For complete explanations on how to convert from base 16 to base 10, see the base-N conversion tool.

Example:123 in base 16 is written 291 in base 10

How to recognize hexadecimal numbers?

The hexadecimal numbers can have letters from a to f.

In computing, it is usual to display a prefix 0x in front of the numbers to indicate that they are in base 16.

Example:0x12 indicate that 12 is written in hexa (hexadecimal system)

Source code

dCode retains ownership of the online 'Hexadecimal (Base 16)' tool source code. Except explicit open source licence (indicated CC / Creative Commons / free), any algorithm, applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (PHP, Java, C#, Python, Javascript, Matlab, etc.) no data, script or API access will be for free, same for Hexadecimal (Base 16) download for offline use on PC, tablet, iPhone or Android !

Need Help ?

Please, check our community Discord for help requests!