🧮 Hex to Memory Offsets

Hexadecimal to Memory Offsets

Examples:
  0x100000000                  Hex value
  0xFFFF FFFF FFFF FFFF        Hex with spaces
  0x1000_0000                  Hex with underscores
  0FFh, 1234h, DEADBEEFh       Hex with trailing 'h'
  0xFFFE8000 + 0x00018000      Addition of hex values
  0x100000000 - 0x1000         Subtraction of hex values
  0xFEC00000 + 64K + 2MB       Mix of hex and size units
  4GB - 16KB                   Subtraction with size units
  4GB                          Size unit alone
  64K, 2M, 1G, 3T, 512B        Short suffixes
  64KB, 2MB, 1GB, 3TB          Long suffixes
  4K * 8 * 32 * 256             Multiplication
  0x1000 * 4 + 2MB              Mixed multiply and add
  2^16, 2^32, 2^10             Power operator
  2^16 - 1                     Power in expressions
  ~0xFFF                       Bitwise NOT (64-bit complement)
  ~0xFFF + 1                   Complement in expressions
  ~(0x100000 - 1)              Parentheses grouping
  (0x1000 + 0x800) * 2         Nested expressions
Features
• Parse hex values with 0x prefix or trailing h, plus spaces and underscores (e.g. 0xFFFF_FFFF, DEADBEEFh)
• Arithmetic expressions with + and - operators (e.g. 0xFEC00000 + 0x18000)
• Size unit support: B, KB, MB, GB, TB and short forms K, M, G, T
• Mix hex values and size units in expressions (e.g. 4GB - 16KB)
• Multiplication with * operator (e.g. 4K * 8 * 32)
• Power with ^ operator (e.g. 2^16, 2^32 - 1)
• Bitwise NOT with ~ operator, 64-bit complement (e.g. ~0xFFF0xFFFFFFFFFFFFF000)
• Parentheses for grouping and nested expressions (e.g. ~(0x100000 - 1), (0x1000 + 0x800) * 2)
• Size breakdown into TB, GB, MB, KB, and Bytes
• Distance to next power of 2
• Signed interpretation for 8, 16, 32, and 64-bit widths
• Multiple calculator sections — click + to add more