Utility

Hex to Decimal

Convert hexadecimal to decimal, and read the hex values that appear in colours, memory and error codes.

Hex to Decimal

Convert Hexadecimal values to Decimal numbers.

Need this done properly for your business?

Radiatus delivers secure cloud, DevOps & compliance engineering.

Book a free consult

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.

Frequently Asked Questions

Privacy & Security

Local conversion.

Data: None
Client-side-Side
Active
v1.0

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.