# Image Boolean XOR

Apply bitwise XOR operation between two images to create difference mask

> Canonical page: https://elysiatools.com/en/tools/image-boolean-xor

- **Category:** Design

- **Keywords:** image, boolean, xor, mask, difference, bitwise, combine, exclusive

## Overview

The Image Boolean XOR tool performs a bitwise exclusive OR operation on two images, effectively highlighting the differences between them by creating a precise visual mask.

## Inputs

- **First Image** (file): First image for XOR operation
- **Second Image** (file): Second image for XOR operation
- **Output Format** (select): Output format for the result image (PNG recommended for transparency)
- **Quality (1-100)** (number): Output quality for lossy formats

## When to use

- Identifying subtle pixel-level changes between two versions of an image.
- Generating a difference mask to isolate unique elements present in one image but not the other.
- Creating artistic visual effects by combining overlapping image data through bitwise logic.

## How it works

- Upload your first and second images into the respective input fields.
- Select your preferred output format, such as PNG for transparency support.
- Adjust the quality slider if you are exporting to a lossy format like JPEG or WebP.
- Process the images to generate and download the resulting XOR difference mask.

## Use cases

- Comparing two UI design iterations to spot minor layout shifts.
- Detecting modifications in security or surveillance snapshots.
- Isolating unique visual artifacts in technical or scientific imaging.

## Frequently asked questions

### What does the XOR operation do to images?

It compares the binary pixel values of two images; pixels that are identical result in black, while differing pixels appear as visible patterns.

### Do the images need to be the same size?

Yes, for the best results, both images should have identical dimensions to ensure pixel-to-pixel alignment during the XOR operation.

### Which output format should I choose?

PNG is recommended as it preserves transparency and offers lossless quality, which is ideal for masks.

### Is there a file size limit?

Yes, each uploaded image must be under 10MB.

### Can I use this for non-image files?

No, this tool is specifically designed for image formats including JPEG, PNG, WebP, GIF, BMP, and TIFF.

## Related tools

- [Image Boolean AND](https://elysiatools.com/en/tools/image-boolean-and): Apply bitwise AND operation between two images to create intersection mask
- [Image Boolean OR](https://elysiatools.com/en/tools/image-boolean-or): Apply bitwise OR operation between two images to create union mask
- [Image Boolean NOT](https://elysiatools.com/en/tools/image-boolean-not): Apply bitwise NOT operation to invert all pixel values in an image
- [Image Difference](https://elysiatools.com/en/tools/image-difference): Calculate the difference between two images to identify changes or create comparison masks
- [Image Emboss Kernel](https://elysiatools.com/en/tools/image-emboss-kernel): Apply emboss convolution kernel to create 3D raised surface effects on images
- [Image Multiply Blend](https://elysiatools.com/en/tools/image-multiply): Apply multiply blend mode between two images to create shadow effects and darken colors
- [Image Overlay Blend](https://elysiatools.com/en/tools/image-overlay): Apply overlay blend mode between two images to enhance contrast and create dramatic effects
- [Image Screen Blend](https://elysiatools.com/en/tools/image-screen): Apply screen blend mode between two images to create brighter, more luminous effects

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing TypeScript Samples](https://elysiatools.com/en/samples/web-image-processing-typescript): Web TypeScript image processing examples including image read/save, scaling, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Binary Image Thresholding, Morphology, and Mask Tools](https://elysiatools.com/en/hubs/binary-image-thresholding-and-morphology): Turn images into binary masks, compare threshold methods, repair foreground shapes, and combine masks with morphological and Boolean operations.
