Hex Calculator

Convert numbers between hexadecimal, decimal, octal and binary. Instant multi-base converter.

Free Hex Calculator — Convert Between Hex, Decimal, Binary & Octal

Hexadecimal is the working language of programmers, hardware engineers, and security researchers. CSS color codes, memory addresses, MAC addresses, cryptographic hashes, and assembly code are all expressed in hex. This free Hex Calculator converts any number between hexadecimal, decimal, binary, and octal instantly, and supports arithmetic operations in hex.

Enter a number in any base and the tool converts to all other bases simultaneously. Perform hex addition, subtraction, multiplication, and division directly without needing to convert to decimal first.

Hex arithmetic is essential for embedded systems programming, reverse engineering, network protocol analysis, and cryptography. This tool handles the conversion math so you can focus on the problem you are solving.

Hexadecimal in Practice

CSS colors. Web colors are written as 6-digit hex codes: #RRGGBB. Each pair controls red, green, and blue (0–FF each). #FF0000 is pure red, #000000 is black, #FFFFFF is white.

Memory addresses. Debuggers, memory editors, and assembly code display memory addresses in hex. 0x1A3F is more compact than 6719 decimal.

MAC addresses. Network hardware addresses are written as 6 hex bytes: 00:1A:2B:3C:4D:5E.

Cryptographic hashes. SHA-256, MD5, and other hash outputs are displayed as hex strings — 64 hex characters for SHA-256 representing 256 bits.

Related Tools

Frequently Asked Questions

What is hexadecimal?

Base-16 number system using 0–9 and A–F. Each hex digit = 4 binary bits.

How to convert hex to decimal?

Multiply each digit by 16^position and sum. e.g., 1A = 16+10 = 26.

Where is hex used?

CSS colors, memory addresses, MAC addresses, cryptographic hashes, assembly code.

Is this free?

Yes. Completely free, no account needed.