Hex Calculator

Published On: 02/03/2026

Hex Calculator

Convert between hex, decimal, and binary, and perform basic hex operations (add, subtract, AND, OR, XOR).
Inputs explained:
Hex: base-16 numbers using 0–9 and A–F (example: 2D, FF).
Decimal: base-10 numbers (example: 45).
Binary: base-2 numbers (example: 101101).
Spaces are ignored. This version supports positive integers within JavaScript’s safe integer range.
Choose the input base below. For hex, you can enter lowercase or uppercase.
Tip: If you need very large integers, upgrade this calculator to use BigInt everywhere.

Hex Calculator — Description

The Hex Calculator converts values between hexadecimal (base 16), decimal (base 10), and binary (base 2). It also supports basic hexadecimal arithmetic and bitwise operations such as addition, subtraction, AND, OR, and XOR. Enter your value, choose the input base, and the calculator instantly shows the equivalent representations.

This tool is useful for programming, computer science, networking, digital electronics, and working with memory addresses, color codes, and bit-level data.