What is hexadecimal?
Hexadecimal (hex) is a base-16 number system using digits 0-9 and letters A-F (where A=10, B=11, …, F=15). Each hex digit packs exactly 4 binary bits, making hex the standard human-readable shorthand for binary in computing — memory addresses, color codes, hashes, and machine code all use it.
Why use hex?
Hex is compact and aligns naturally with byte boundaries. One byte = exactly two hex digits, four bytes = eight hex digits, etc. That makes hex the canonical format for memory dumps, register state, network packets, hash digests, and anywhere you need to talk about raw bytes without writing 8 bits at a time.
How does each hex digit map to decimal?
Digits 0-9 map to themselves. A=10, B=11, C=12, D=13, E=14, F=15. The position of each digit determines its weight: rightmost is 16^0=1, next is 16^1=16, then 16^2=256, 16^3=4096, and so on. Multiply each digit by its weight and sum to get the decimal.
Does the input accept 0x or # prefixes?
Yes. The converter strips a leading 0x (programmer convention) or # (CSS color convention) before parsing. So 0xFF, #FF, and FF all parse to 255 decimal. Anything other than the prefix and 0-9/A-F triggers a clear error.
How is hex case handled?
Hex is case-insensitive on input — 0xFF and 0xff both parse to 255. The output uses uppercase by default to match the dominant convention in C, Java, hardware specs, and protocol documentation. Lowercase appears more often in CSS color codes and Unix tools.
What is the largest hex I can convert?
Up to 14 hex digits, capped at Number.MAX_SAFE_INTEGER (2^53 − 1). Above that, JavaScript number precision degrades. For 64-bit integers, larger crypto values, or arbitrary-precision arithmetic, use BigInt: BigInt("0x" + hex) parses any-length hex into an exact integer.
How do I convert a CSS color like #FF8800?
Split into three pairs: FF, 88, 00. Each pair is one byte (0-255) for red, green, blue. FF=255, 88=136, 00=0 → RGB(255,136,0), a strong orange. Paste a single 6-digit color into this tool and the result is the integer encoding (16,746,496 for #FF8800), which is what some APIs expect.
Is the data sent to a server?
No. All conversion happens in JavaScript inside your browser. Open DevTools → Network and confirm zero requests when you click Convert. Safe for internal IDs, secret tokens, hashes, or proprietary numeric data.