# Image Bitwise Blend

Combine two images bit by bit with AND, OR or XOR. Upload a base image and a second image, and every red, green and blue value of the base is combined with the matching value of the second image at the binary level. The second image is resized to the base, and the base keeps its transparency. Creates glitch art, masks and patterns and shows how digital images are stored.

## Frequently asked questions

### Which file is the base?

The first uploaded file is the base. It sets the width and height of the result, its name is used for the download and its transparency is kept. The second file is the operand that is combined with it.

### How many files do I need?

Exactly two images are required. Uploading one or more than two files gives a message asking for two images. Each file may be up to 5 MB.

### What do the operators do?

AND keeps only the bits that are set in both images, so the result is never brighter than either input and works like a mask. OR keeps bits set in either image, so the result is never darker. XOR keeps bits set in exactly one image, which reveals differences and creates psychedelic patterns.

### What if the images have different sizes?

The second image is resized to exactly the dimensions of the base image, without keeping its aspect ratio. For precise results, use two images of the same size. Images over 4000 pixels on a side are first scaled down to fit.

### How do I use AND as a mask?

Use a black and white image as the second file. Where it is white, all bits are set and AND keeps the base unchanged, and where it is black, AND produces black. This is a quick way to cut out regions without an editor.

### Can XOR show differences between two images?

Yes, identical pixels give black with XOR, while differing pixels light up. That makes it a simple way to spot changes between two versions of the same picture of the same size. JPEG artifacts appear as faint noise.

### What happens to transparency?

The alpha channel of the base image is kept, and the alpha channel of the second image is ignored. Grayscale images are treated as RGB with three equal channels.

### What is the output format?

The result is a lossless PNG with the dimensions of the base image. It contains RGB, plus alpha when the base image had transparency.

### Which formats can I upload?

JPEG, PNG, GIF, WebP, TIFF and AVIF images are accepted. Animated files use their first frame.

### What engine is used?

The tool uses the boolean operation of the sharp library on libvips, which applies the operator to each channel of each pixel. The calculation is exact.

Your ad here?

[Email us](mailto:hi@dennn.is?subject=Advertising%20on%20OneClick%20Pro)

[Ad The agent-ready plugin suite for WordPress.](https://sleekwp.com/?ref=oneclickpro)
