⚡
usefultools.dev
⊕

Bitwise Calculator (XOR / AND / OR)

NOUVEAU

XOR, AND, OR or NOT hexadecimal values of any length, for example to combine key components, with binary output.

Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.

Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.

ResultFFFFFFFFFFFFFFFF

11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111

⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

0123…CDEF XOR FEDC…3210
FFFFFFFFFFFFFFFF
0F XOR F0 XOR FF
00
F0 AND 3C
30
F0 OR 0F
FF
NOT A5
5A
📖

Présentation

Bitwise operations come up constantly in payment and security work. Key custodians XOR two or three key components to form a key, PIN blocks are built by XORing a PIN field with a PAN field, and flags in EMV and ISO 8583 data are tested with AND and OR masks.

Enter two or more hex values of the same length and pick XOR, AND or OR; the operation is applied from left to right. NOT inverts every bit of the first value. The result is shown in hex and as binary grouped by byte, with no limit on length. Spaces, colons and hyphens in the input are ignored.

The calculator is aimed at payment developers, HSM operators and testers who need a quick check of key components, masks or flags. Everything runs in your browser, so values never leave the page, but you should still use test data and test keys only.

Pourquoi utiliser cet outil ?

  • Combine 2 or 3 key components without a spreadsheet
  • Check masks and flags in hex data
  • Works with any length — not limited to 32 or 64 bits
  • Runs locally in your browser
⭐

Fonctionnalités

⊕

XOR, AND, OR, NOT

All four basic bitwise operations on hex strings.

➕

Up to 6 operands

Add operands to XOR several components at once.

📏

Length check

Warns when operands do not have the same number of digits.

🔢

Binary view

See the result bit by bit, grouped per byte.

🧹

Tolerant input

Spaces, colons and hyphens are stripped; other non-hex characters are reported.

🛠️

Mode d'emploi

1

Choose an operation

Select XOR, AND, OR or NOT (first operand only) in the Operation list.

2

Enter operands

Type equal-length hex values into Operand A, Operand B and so on; use "+ Add operand" for more.

3

Read the result

The hex result and its binary form update as you type.

4

Copy

Use the copy button next to the Result.

🤔

Questions fréquentes