Skip to main content
Workspace is empty
IMAGE TOOL
⬛

Image Threshold Tool

Convert images to high-contrast binary black and white masks with custom cut-off level adjustments and inversion modes.

✓Runs entirely in your browser
✓Local processing when supported
✓Direct client-side Canvas 2D & WebP engine

Images are read directly into browser memory using HTML5 File APIs. No data leaves your machine.

Drag & drop images to begin

Select or drag multiple images from your device. Entirely processed locally in your browser memory.

In-Browser Binary Image Threshold & Mask Generator

The Image Threshold Tool converts color and grayscale photographs into stark, high-contrast binary black-and-white images. By evaluating the brightness of each pixel against a user-defined cut-off threshold (0 to 255), pixels brighter than the threshold become pure white, while darker pixels become pure black.

Binary thresholding is a fundamental technique in computer vision, optical character recognition (OCR), stencil art, and graphics design. It isolates high-contrast silhouettes, extracts printed text from noisy backgrounds, and prepares graphics for laser cutting or screen printing.

Operating in-browser in your device's RAM, the tool provides adjustable threshold sliders, luminance vs average brightness calculation modes, mask inversion toggles, split-screen inspection, and batch ZIP export.

Core Tool Capabilities

  • Binary Cut-Off Level Control: Fine-tune threshold levels from 0 (all white) to 255 (all black) with real-time canvas rendering.
  • Invert Mask Mode: Instantly swap black and white regions with one click to create stencil negative masks.
  • Perceived Luminance & Average Calculation: Choose between ITU-R perceived luminance weighting and standard RGB channel averaging.
  • Interactive Split Slider Preview: Compare binary threshold outputs directly against original color images with a draggable comparison bar.
  • Batch Processing & ZIP Download: Convert whole batches of graphics or scans into threshold masks and export them in a ZIP archive.

Local Browser Privacy

Your files are processed locally on your device. Files are not uploaded, transmitted, or stored on remote servers.

Once the page has loaded, you can disconnect your network connection and continue using this tool offline.

Target Use Cases

  • • OCR & Document Pre-Processing
  • • Laser Cutting & CNC Engraving
  • • Screen Printing & Stencil Design
  • • Computer Vision & Edge Analysis

Technical Specifications & Platform Limits

Supported Input Formats
JPG, PNG, WebP, AVIF, SVG, GIF, BMP

Decodes standard web images, vector graphics, and digital photos in browser memory.

Threshold Level Range
0 to 255 (Default 128 Cut-off)

Evaluates brightness per pixel against integer cut-off point.

Calculation Modes
Luminance (ITU-R Perceived) & RGB Average

Determines pixel brightness before binary thresholding.

Execution Boundary
In-browser processing

Executes locally inside your browser with no file upload required.

Step-by-Step Workflow

1

Upload Images or Scans

Drag and drop source images, sketches, or scans into the workspace.

2

Set Threshold Cut-Off

Drag the threshold slider to adjust the black-and-white separation point.

3

Toggle Inversion & Mode

Optionally invert black and white regions or switch calculation mode for complex graphics.

4

Download Threshold Masks

Save individual high-contrast masks or download all files in a compressed ZIP archive.

Practical Real-World Use Cases

OCR & Document Pre-Processing

Binarizing scanned receipts, contracts, or whiteboards to remove background noise and maximize text readability for OCR software.

Laser Cutting & CNC Engraving

Preparing sharp binary vector and raster silhouettes for laser engravers, vinyl cutters, and CNC machines.

Screen Printing & Stencil Design

Extracting bold black-and-white graphics for t-shirt screen printing, posters, and street art stencils.

Computer Vision & Edge Analysis

Isolating high-contrast shapes, contours, and object boundaries for image segmentation analysis.

Frequently Asked Questions

What is image thresholding?
Thresholding is a binarization process that converts grayscale/color images into binary (pure black and pure white) pixels by comparing pixel brightness against a cut-off number.
What happens when I invert the mask?
Inverting swaps pixel outputs: pixels that were white become black, and pixels that were black become white, creating negative stencil masks.
Are my scanned documents sent to a server?
No. All threshold computations occur locally in your browser using HTML5 Canvas and Web APIs. No network requests are made.
Which calculation mode should I choose?
Luminance (Perceived) accounts for human eye sensitivity to green light and works best for real-world photos. RGB Average is ideal for synthetic graphics.

Share this tool

Help others discover this utility. No login or registration required.