If you consider that hexadecimal is base 16, its actually quite easy:

Start from the least significant digit and work towards the most significant (right to left) and multiply the digit with increasing powers of 16, then sum the result.

For example:

0x12 = 2 + (1 * 16) = 18

0x99 = 9 + (9 * 16) = 153

Then, remember that A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15

So,

0xFB = 11 + (15 * 16) = 251

Answer from Andre Miller on Stack Overflow
🌐
Binary Hex Decimal Converter
binaryhexconverter.com › hex-to-decimal-converter
Hexadecimal to Decimal Converter
To use this online hex to decimal converter tool, type a hex value like 1E into the left field below, and then hit the Convert button. You can convert up to 16 hex characters (max.
🌐
Binary Hex Decimal Converter
binaryhexconverter.com › decimal-to-hex-converter
Decimal to Hexadecimal Converter
Step 6: When the last decimal digit is less than 16, the quotient will be less than 0 and the remainder will be the digit itself. Step 7: The last remainder you get will be the most significant digit of your hex value while the first remainder from Step 3 is the least significant digit. Therefore, when you write the remainders in reverse order - starting at the bottom with the most significant digit and going to the top- you will reach the hex value of the given decimal number.
People also ask

Can I convert hex back to decimal?
Yes — the hex to decimal converter reads values with or without the 0x prefix, in any case.
🌐
openreplay.com
openreplay.com › home › developer toolbox › decimal to hex converter
Decimal to hex converter | OpenReplay
Can I convert decimal back to hex?
Yes — use the decimal to hex converter, which offers a 0x-prefix option, uppercase toggle and byte padding.
🌐
openreplay.com
openreplay.com › home › developer toolbox › hex to decimal converter
Hex to decimal converter | OpenReplay
Lowercase or uppercase hex — does it matter?
Not to the value: 0xff and 0xFF are identical. Uppercase is common in color codes and documentation; lowercase is common in code. Use the toggle to match your context.
🌐
openreplay.com
openreplay.com › home › developer toolbox › decimal to hex converter
Decimal to hex converter | OpenReplay
🌐
Teleport
goteleport.com › home › resources › tools › hex to decimal converter | instantly convert hex to decimal numbers
Hex to Decimal Converter | Instantly Convert Hex to Decimal Numbers | Teleport
Converting from hex to decimal translates a number from base-16 to base-10. This is essential in computing because low-level programming tasks and hardware interfaces often use hexadecimal notation. For example, memory addresses and machine code instructions frequently appear in hex format.
🌐
OpenReplay
openreplay.com › home › developer toolbox › decimal to hex converter
Decimal to hex converter | OpenReplay
Yes — the hex to decimal converter reads values with or without the 0x prefix, in any case.
Find elsewhere
🌐
YouTube
youtube.com › the organic chemistry tutor
How To Convert Hexadecimal to Decimal - YouTube
This video tutorial explains how to convert hexadecimal to decimal numbers using a simple process. My Website: https://www.video-tutor.net Patreon Donations:...
Published: May 21, 2018
Views: 295K
🌐
OpenReplay
openreplay.com › home › developer toolbox › hex to decimal converter
Hex to decimal converter | OpenReplay
Paste a hex value, with or without the 0x prefix and in any case, and the decimal equivalent appears immediately. The tool ignores spaces between bytes and validates that only hex digits are present, flagging anything invalid before you rely on the result.
🌐
Teleport
goteleport.com › home › resources › tools › decimal to hex converter | instantly convert decimal to hex numbers
Decimal to Hex Converter | Instantly Convert Decimal to Hex Numbers | Teleport
Hexadecimal numbers pop up frequently in error codes and network configurations, so being able to interpret and manipulate them is essential for effective troubleshooting and development. In this article, you’ll find a straightforward guide to decimal-hexadecimal conversion.
🌐
BYJUS
byjus.com › maths › decimal-to-hex-conversion
The conversion of decimal - numbers - to hexadecimal
December 20, 2021 - But before learning the steps let us see the table, where for each value of the decimal number from 0 to 15, there is an equivalent hexadecimal number given. To convert the decimal number system to hex, students have to remember the table given below, to solve the problems in a quick way.
🌐
YouTube
youtube.com › watch
Convert decimal to hexadecimal EASY! - YouTube
#coding #programming #computerscience An easy way to convert decimal to hexadecimal is by repeatedly dividing the original number by 16 and keeping track of ...
Published: July 20, 2025
🌐
StrongDM
strongdm.com › tools › decimal-to-hex-converter
Decimal to Hex Converter: Free Online Translator
Divide the decimal number by 16. Record the remainder (0–15), translating 10–15 to A–F. Repeat with the quotient until it reaches zero. Combine the remainders in reverse order to get the hex value.
🌐
GeeksforGeeks
geeksforgeeks.org › mathematics › hex-to-decimal
Hex to Decimal Converter | How to Convert Hex to Decimal? - GeeksforGeeks
September 26, 2025 - The hexadecimal digit is expanded to multiply each digit by the power of 16, starting at 0 from the right and moving forward towards the right with the increase in power. Decimal Number = dn-1 × 16r-1+ dn-2 × 16r-2 .
🌐
YouTube
youtube.com › watch
Hexadecimal to Decimal - EASY! - YouTube
#ccna #LazDiazCerts #cisco #ccnp #career #jobs #linux #networkengineer #cybersecurity #networking #network+ #programming #python #certifications #mikrotik #a...
Published: August 18, 2010
🌐
YouTube
youtube.com › the organic chemistry tutor
How To Convert Decimal to Hexadecimal - YouTube
This video tutorial explains how to convert decimal to hexadecimal numbers. The decimal system is a base 10 system whereas the hexadecimal system is a base ...
Published: May 21, 2018
Views: 1M
🌐
Fandom
vim.fandom.com › wiki › Convert_between_hex_and_decimal
Convert between hex and decimal | Vim Tips Wiki | Fandom
With the following mapping, you can put the cursor on a hex number and press \h (assuming the default backslash leader) to yank the value of the hex number (using :let means the equivalent decimal string is copied).