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 source code of the script Hexadecimal (Base 16) online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Hexadecimal (Base 16) script for offline use on PC, iPhone or Android, ask for price quote on contact page !