Logic Tables & Simulator.
Simulate logic gates (XOR, AND, OR, XNOR, NAND, NOR, NOT) and view standard truth tables and ASCII binary mappings.
Interactive Bitwise Gate
Select Operator
INPUT A
^ INPUT B
= OUTPUT
0
0 ^ 0 = 0
Click on the Input A and Input B buttons above to toggle their binary states (0 and 1). Select different operators to see how logical operations are calculated bit-by-bit.
Truth Table: XOR vs Others
| A | B | A ^ B (XOR) | A & B (AND) | A | B (OR) | A ~^ B (XNOR) |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 |
ASCII Text Character XOR Reference
When XORing ASCII text strings, characters are converted to their 8-bit ASCII integers. XOR matches their bits character-by-character. Below are common characters and their formats:
Char: A
Dec: 65
Hex: 0x41
Bin: 01000001
Char: a
Dec: 97
Hex: 0x61
Bin: 01100001
Char: 0
Dec: 48
Hex: 0x30
Bin: 00110000
Space
Dec: 32
Hex: 0x20
Bin: 00100000