⚡
usefultools.dev
⊕

Bitwise Calculator (XOR / AND / OR)

NOVO

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

Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.

Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.

ResultFFFFFFFFFFFFFFFF

11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111

⚡

Exemplos rápidos

Entradas típicas e os resultados que esta ferramenta gera.

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

Visão geral

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.

Por que usar esta ferramenta?

  • 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
⭐

Recursos

⊕

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.

🛠️

Como usar

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.

🤔

Perguntas frequentes