Online calculator for bitwise **XOR** operation on text in ASCII or numbers in Binary, Octal, Decimal, & Hex formats.

Multiple input numbers (even greater than 2) are supported by applying bitwise operations successively on the intermediate results.

- Binary Result:

The result of XOR operation in Binary`..`

- Octal Result:

The result of XOR operation in Octal`..`

- Decimal Result:

The result of XOR operation in Decimal`..`

- Hex Result:

The result of XOR operation in Hex`..`

- Ascii Result:

The result of XOR operation in Ascii`..`

- Input Base:

The base of the input numbers either explicitly specified or automatically detected`..`

Perform binary bitwise XNOR operation on text in ASCII or numbers in Binary, Octal, Decimal and Hex formats

View ToolBackground Information

- Suppose you have two original binary numbers A and B
- You applied XOR on A and B to get C
- Now you want to reverse the XOR operation and want to obtain A
- For this, you will need B and C
- To find out A, just XOR B and C. Because XOR is it's own inverse, you will get A
- Similarly, to find out B, all you need to do is XOR A and C
- Example: XORing 1011 and
**1100**gives 0111. Applying XOR on 1011 and 0111 returns**1100**

XOR is a digital logic gate that outputs true or 1 only when the two binary bit inputs to it are unequal i.e for an input of `0 & 1`

or `1 & 0`

.

You can remember the above result using one of these logics too:-

- Returns true when only one of the inputs is 1
- Returns false when both the inputs are same

It is also termed as EOR or EXOR (exclusive OR gate). So, it is similar to OR gate but different in the sense that only one input must be 1 for a result of High whereas in OR either of the input can be true for it to return 1.

In a way XOR represents an inequality function, != or Not Equal To. Checkout the Truth Table below for more information on the results.

Well, simply put it you can use it to calculate XOR online. The tool supports inputs in the common numerical bases Binary, Octal, Decimal, Hex & even ASCII. That means you can also XOR hex values or XOR strings in ASCII. This is done by first converting the inputs into their Binary equivalents then performing the XOR operation on them. Finally, the results are returned in all of the above numerical bases so that you can pick whichever ones you want.

The intermediate results are shown in a tabular format which can help you diagnose any problems you encountered while doing a manual XOR operation. In this table, your inputs are shown in their original form. If the input base is not binary then each translation of the inputs to binary is also shown in a different column.

### 1. Input Base

Choose the base of the input numbers

#### Auto Detect

In this mode, number base is automatically detected based on the input provided

#### Binary (base 2)

XOR two binary numbers

`1000 ⊕ 1111 = 111`

#### Octal (base 8)

XOR two octal numbers

`1000 ⊕ 7777 = 6777`

#### Decimal (base 10)

XOR two decimal numbers

`1000 ⊕ 9999 = 9447`

#### Hex (base 16)

XOR two hex numbers

`1000 ⊕ FFFF = EFFF`

#### Ascii (base 256)

XOR two ascii strings

`a ⊕ B = #`

### 2. Auto Cleansing

If selected, automatic cleansing is performed on the data

### 3. Calculate Intermediate Results

If selected, intermediate results are calculated (takes more time)

A | B | Result |
---|---|---|

False | False | False |

True | False | True |

False | True | True |

True | True | False |

A | B | Result |
---|---|---|

0 | 0 | 0 |

1 | 0 | 1 |

0 | 1 | 1 |

1 | 1 | 0 |

#### Calculate XOR of Text

XOR of text is calculated by first converting each character into it's equivalent ASCII character code. The same process is applied to each line of the input until all that remains are decimal numbers. These numbers are then converted into binary and bitwise XOR is applied on them. The final output is again converted back to ASCII for you to see.

- Paste all the texts you want to XOR in the input box.
- The converter supports multiple delimiters. But it's best to keep each text value in a new line.
- Change the input base to
**Ascii**. The calculator does it's best to automatically detect the input type (Binary, Octal, Decimal, Hex or ASCII Text). But you might want to give it an easy time and just let it know that the input is plain text in ASCII format.

- Mar 25, 2018
- Tool Launched

## Comments 1

## Partho Sarathi

This is my most favorite tool