Hex to Decimal
Accepts 0x prefixes and both upper and lower case digits.
How Hex to Decimal works
Convert hexadecimal values to decimal, binary and octal. Accepts 0x prefixes and both upper and lower case digits. Everything happens inside this page: the tool reads your input, runs the calculation or conversion locally, and hands the result back to you. Nothing is transmitted, because there is no backend to transmit it to.
That design choice is deliberate. Most free tool sites upload your files to a server, process them there, and quietly keep a copy. Toolcin cannot do that — the site is a set of static files. If your connection dropped the moment the page finished loading, every tool would still work.
Each digit is sixteen times the last
Hexadecimal is base 16, so FF is 15 × 16 + 15 = 255. Reading left to right, each position is worth 16 times the one to its right, exactly as decimal positions are worth ten times.
That is why two hex digits map to one byte: 00 to FF covers 0 to 255.
Where hex is the working language
Colour values (#38F2CF is three bytes), memory addresses, hashes and MAC addresses. In each case the hex form is shorter and aligns to bytes, which decimal does not.
| Hex | Decimal | Common context |
|---|---|---|
| 0A | 10 | Newline character |
| 1F | 31 | Unit separator |
| 7F | 127 | Delete |
| FF | 255 | Maximum byte |
Case and prefixes
a–f and A–F mean the same digits. A leading 0x is accepted and ignored, and spaces between bytes are tolerated — which matters when pasting a hex dump.
Good to know
- Works offline once loaded, including on flights and in locked-down networks.
- No file size limit beyond your device's own memory.
- Free to use, with no account and no usage counter.
- Results are produced locally, so they are not logged or shared with anyone.
Questions
Is anything uploaded when I use Hex to Decimal?
No. The calculation runs in your browser with JavaScript, so the values you enter never leave your device.
What should I check before relying on the result?
Accepts 0x prefixes and both upper and lower case digits. Treat the output as an estimate and verify anything critical independently.
Can I convert a colour value?
Paste the hex without the # and it converts to decimal; split into bytes for RGB.
Does it handle 64-bit values?
Up to the range JavaScript represents exactly, about 9 quadrillion.
Keep going
More math tools
Percentage Calculator
Work out percentages, increases, decreases and percentage differences with the formula shown for each answer.
Open toolAspect Ratio Calculator
Enter an original size and a new width or height — the other side is calculated to preserve the ratio.
Open toolRandom Number Generator
Pick numbers between a minimum and maximum using the browser's cryptographic random source.
Open toolDice Roller
Roll up to 100 dice of any standard type, add a modifier and see each face plus the total.
Open toolStandard Deviation
Paste a list of numbers to get mean, median, both standard deviations and variance.
Open toolFraction Calculator
Do fraction arithmetic and get the answer simplified to lowest terms with its decimal value.
Open tool