Hex to Decimal
Convert hexadecimal to decimal, and read the hex values that appear in colours, memory and error codes.
Last reviewed by the Radiatus Cloud team
Hex to Decimal
Convert Hexadecimal values to Decimal numbers.
Need this done properly for your business?
Radiatus delivers secure cloud, DevOps & compliance engineering.
Each digit is a power of 16
Reading right to left, positions are worth 1, 16, 256, 4096. So 0x1F is 1×16 + 15 = 31, and 0xFF is 255 — the largest value a single byte holds, which is why FF appears everywhere a byte is at its maximum. A–F represent 10 to 15.
Two hex digits are exactly one byte
This is why hex survived while octal faded. A byte maps to exactly two hex characters with no remainder, so a memory dump, a hash or a colour value reads cleanly in pairs. Binary is exact but unreadable at length; decimal does not align with byte boundaries at all.
Where you meet it
CSS colours, where #FF5733 is three bytes of red, green and blue. Memory addresses in debuggers and crash reports. MAC addresses. Unicode code points written U+1F600. HTTP status extensions and driver error codes such as 0x80070005, where the leading bits encode severity and facility rather than being an arbitrary number.
Prefixes signal the base
0x is the C-family convention and the most common. Some assemblers use a trailing h, HTML and CSS use #, and Unicode uses U+. A bare string of digits and letters is ambiguous — 100 is 256 in hex and 100 in decimal, and nothing in the characters themselves says which.
Case never matters
0xFF and 0xff are identical. Conventions differ by ecosystem — lowercase in C and Unix tooling, uppercase in Windows error codes and MAC addresses — but no parser distinguishes them.
Related tools
- User Agent Parser — Parse a User-Agent string into browser, engine, operating system and device. Explains why UA strings are unreliable and what to use instead.
- QR Code Generator — Generate QR codes for URLs, text, Wi-Fi and contact details. Adjustable error correction and size, produced entirely in your browser.
- Credit Card Validator — Validate a card number with the Luhn algorithm and identify the issuing network from its prefix. Runs locally, nothing is transmitted.
- Text Case Converter — Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case and sentence case. Runs entirely in your browser.
Frequently Asked Questions
How do I convert hex to decimal by hand?
Multiply each digit by its positional power of 16 and sum. 0x1F is 1×16 plus 15, which is 31.
Why is hexadecimal used instead of decimal?
Because two hex digits map to exactly one byte with no remainder, so memory dumps, hashes and colour values align cleanly in pairs.
What does the 0x prefix mean?
It marks the value as hexadecimal in C-family syntax. Without a prefix the string is ambiguous — 100 is 256 in hex and 100 in decimal.
Does the case of hex letters matter?
No. 0xFF and 0xff are identical. Conventions differ by ecosystem but no parser distinguishes them.
Privacy & Security
Local conversion.
About This Tool
This tool runs entirely in your browser. No data is sent to any server, ensuring complete privacy. Simply use the interface above to get started — no registration or login required.
Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.
Related Tools
User Agent Parser
UtilityParse a User-Agent string into browser, engine, operating system and device. Explains why UA strings are unreliable and what to use instead.
QR Code Generator
UtilityGenerate QR codes for URLs, text, Wi-Fi and contact details. Adjustable error correction and size, produced entirely in your browser.
Credit Card Validator
UtilityValidate a card number with the Luhn algorithm and identify the issuing network from its prefix. Runs locally, nothing is transmitted.