What is a Binary Image?

A binary image is a picture in which every pixel is one of two values, usually black or white. Each pixel needs only 1 bit.

How Binary Images work

Binary images are made by thresholding: every pixel brighter than a cutoff becomes white and the rest become black. A single cutoff works for clean scans. For photos with uneven lighting, adaptive thresholding picks a cutoff per region. The term has nothing to do with binary files: it describes the two possible pixel values, not how the file is stored.

Key facts

  1. An uncompressed binary image of 1000×1000 pixels takes 125 kB at 1 bit per pixel. The same image in 24-bit color takes 3 MB.
  2. Otsu’s method chooses the threshold automatically by finding the cutoff that best separates dark pixels from light ones.
  3. Fax machines send pages as binary images, and scanned PDFs often store them that way, compressed with schemes made for them such as CCITT Group 4 and JBIG2.

When Binary Images matter

Convert to a binary image before OCR, barcode reading or shape detection, where only the outline matters. It is also the form used for masks that mark which pixels of another image to keep.

Turn media knowledge into a working pipeline

Connect uploads, processing, AI, storage, and delivery through one declarative API — with the encoding stack, scaling, and format churn handled for you.

Try Transloadit for free