PNG to Stencil Converter

Uploads a PNG and thresholds every visible pixel's luminance against a chosen cutoff, turning dark regions into solid opaque black and light regions into full transparency (or the reverse, with the invert option) — a stencil-style cutout suited to laser cutting or vinyl. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

This tool reduces a PNG to a stark two-tone stencil — solid black where the image is dark, fully cut away (transparent) where it's light — the kind of prep work needed before laser cutting, vinyl cutting, or engraving a design.

Unlike the silhouette converter, it works from brightness rather than existing transparency, so it can carve a shape out of a fully opaque photo.

What Is PNG to Stencil Converter?

A client-side stencil generator that computes each visible pixel's perceptual luminance (using the standard ITU-R BT.601 weighting) and compares it against an adjustable threshold.

Pixels on the 'keep' side of the threshold become solid opaque stencil color; pixels on the other side are cut away to full transparency.

How PNG to Stencil Converter Works

Luminance is computed per pixel as 0.299R + 0.587G + 0.114B, the same weighting used for standard grayscale conversion.

If that luminance is below the threshold, the pixel is kept as solid color (or cut away, if invert is enabled); already-transparent source pixels always stay transparent regardless of luminance.

When To Use PNG to Stencil Converter

Use it to prepare a photo or logo for laser cutting, vinyl cutting, or stencil-based screen printing.

It's also useful for a stark, high-contrast graphic effect independent of any cutting workflow.

Features

Advantages

  • Runs entirely client-side; your image is never uploaded to a server.
  • Works on fully opaque source images, unlike transparency-dependent effects, since it thresholds on brightness instead.
  • An adjustable threshold and invert option give control over exactly how much of the image survives as solid stencil.

Limitations

  • There's no smoothing or anti-aliasing on the resulting edges — the output is a hard binary cutoff, which is intentional for cutting use cases but can look jagged at low resolutions.
  • A poor threshold choice for a given image can produce a stencil that's mostly solid or mostly empty; some experimentation is usually needed.

Examples

Stencil a high-contrast portrait

Input

A black-and-white photo, threshold 128

Output

Dark facial features and shadows become solid black; bright areas are cut away

The default threshold splits the image roughly at mid-gray brightness.

Invert to keep the highlights instead

Input

The same photo, threshold 128, invert enabled

Output

Bright areas become solid, dark areas are cut away

Enabling invert flips which side of the threshold is kept as stencil material.

Best Practices & Notes

Best Practices

  • Start with the default threshold of 128 and adjust up or down based on how much of the image should survive as solid stencil.
  • High-contrast source images with clear light/dark separation produce the cleanest stencils.

Developer Notes

The luminance-threshold math is a pure, single-pass loop over the pixel buffer with no dependency on the source image's alpha channel beyond respecting already-transparent pixels, distinct from the silhouette converter's alpha-driven approach.

PNG to Stencil Converter Use Cases

  • Preparing a portrait or logo for laser cutting or engraving
  • Creating vinyl-cutter-ready artwork from a photo
  • Producing a stark, high-contrast graphic effect for a design

Common Mistakes

  • Using a low-contrast source image and being surprised the stencil comes out mostly one solid color — try adjusting the threshold or starting from a higher-contrast source.
  • Forgetting that already-transparent areas in the source always stay transparent, regardless of threshold or invert settings.

Tips

  • If your cutter software expects specific colors, note this always outputs solid black stencil pixels — recolor afterward if a different stencil color is needed.
  • Try both the default and inverted output to see which better represents your subject.

References

Frequently Asked Questions