This hex calculator handles the two jobs you actually need a hexadecimal calculator for: converting between hex, decimal, binary, and octal, and doing arithmetic directly on hex numbers. The primary use cases are HTML and CSS color codes (like #FF5733 or #00BFFF), debugging memory addresses, and reading byte values in low-level code. You can use it as a hex to decimal converter, a decimal to hex converter, or a binary to hex converter without switching tools.
- Convert from hex: type a hexadecimal value like
FF,2AF, orDEADBEEFin the Hexadecimal field. The decimal, binary, and octal equivalents update as you type. Digits 0-9 and A-F are accepted, and case does not matter (ffequalsFF). - Convert from decimal: type a base-10 number in the Decimal field to get its hex representation. This is how you turn an RGB value like 255 into
FF, or a byte count like 1024 into400. - Convert from binary or octal: use the Binary field (0 and 1 only) or the Octal field (0-7 only). Binary
10110100becomes hexB4, which is far easier to read. - Do hex arithmetic: enter two hex values in Hex A and Hex B, then pick an operation: add, subtract, multiply, divide, AND, OR, or XOR. The result is shown in both hex and decimal. Bitwise operations (AND, OR, XOR) are what you want for masking flags, setting bits, or comparing color channels.
Every calculation runs in your browser, so inputs never leave the page. Whether you are picking a hex color code for a web page or double-checking an assembly-language offset, the math updates instantly.