Skip to content
CornerTools

Black and White Filter

Turn photos black and white with film-style filters, or sepia or a pencil sketch — many at once, at full size.

Drop images here or paste them, or

Your images never leave your device

Processed in this browser · JPG, PNG, WebP, GIF, BMP, AVIF, HEIC or TIFF · up to 50 at a time

Look

Each colour as bright as it looks.

0
0
92

For JPG and WebP. PNG stays lossless.

Turns photos black and white, sepia-toned or into a pencil sketch, up to 50 at a time, at their full size. The colour filters change how each colour turns to grey, as a coloured lens on black-and-white film does: a red filter for dark skies and bright clouds, green for lighter leaves. Photos are processed in your browser and never uploaded.

How to use it

Add photos, then choose a Look: each button previews it on the middle of the photo on show. Black and white has a Filter: Neutral (the default), Red, Orange, Yellow, Green or Blue. Pencil sketch has Line thickness, from 1 to 10 (default 3): the blur behind the lines, in thousandths of the photo's shorter side, so a photo of any size gets lines of the same weight. Brightness and Contrast run from -100 to 100 for every look; at 0 they change nothing.

The result shows over the original, split by a divider you can drag. Each photo is saved at its own size, in its own format or as JPG, PNG or WebP, without metadata; switch on Keep metadata to copy the camera, lens, settings and date taken, never the location. Transparent areas stay transparent in PNG and WebP and turn white in a JPG. The page remembers your options on this device.

How it works

A photo's values are not proportional to light: sRGB stores them gamma-encoded, so 128 is about a fifth of the light of 255, not half. Neutral converts each value to linear light with the sRGB transfer function, adds the channels with the Rec. 709 luminance weights (red 21.3%, green 71.5%, blue 7.2%), and encodes the sum again, so a grey keeps its value and each colour is as bright as it looks. A plain average of the three channels makes pure red and pure green the same grey, 85; Neutral gives red 127 and green 220, as green looks much brighter. CSS's grayscale() applies the same weights without decoding first, which darkens saturated colours: pure red comes out at 54.

The colour filters weigh the channels differently, still in linear light and still summing to 100%, so white stays white and every grey stays as it was. A filter lets its own colour through: what has that colour comes out lighter and its opposite darker. The weights are this tool's own, chosen for the effect; they are not measured from any filter or film.

Sepia is the matrix the W3C Filter Effects specification defines for CSS sepia() at full strength, applied to the encoded values as browsers apply it; results above 255 are clipped. Pencil sketch takes the Neutral grey, inverts it, blurs the inverse (a Gaussian blur) and divides the grey by what is left (a colour dodge): flat areas turn white and edges stay as lines as wide as the blur. 8 levels added to both sides of the division keep dark, noisy areas from breaking into black and white blotches. After the look, Brightness multiplies each value and Contrast scales its distance from mid-grey, as CSS brightness() and contrast() do: 50 multiplies by 1.5, −100 by 0, giving black or a flat mid-grey, and 100 by 2.

Linear = ((V + 0.055) ÷ 1.055)^2.4, or V ÷ 12.92 for V ≤ 0.04045 (V from 0 to 1)
Grey = encode(wR × R + wG × G + wB × B), on linear values
Sepia R = 0.393 R + 0.769 G + 0.189 B
Sepia G = 0.349 R + 0.686 G + 0.168 B
Sepia B = 0.272 R + 0.534 G + 0.131 B
Sketch = (grey + 8) × 255 ÷ (255 − blur(255 − grey) + 8)

Examples

A blue sky through each filter

Pixel (R, G, B)
70, 130, 220
Filter: Neutral
130
Filter: Red
86
Filter: Blue
197

The Red filter turns this sky 44 levels darker than Neutral, so white clouds stand out against it; Blue turns it 67 levels lighter, nearly to the clouds' white.

Sepia on white and on mid-grey

Sepia of 255, 255, 255
255, 255, 239
Sepia of 128, 128, 128
173, 154, 120

White keeps full red and green but loses some blue, so the brightest parts of a sepia photo are a pale cream; mid-grey turns a warm brown.

Filter weights

Each filter's share of red, green and blue light in the grey
FilterRedGreenBlueEffect
Neutral21.3%71.5%7.2%Each colour as bright as it looks.
Red80%20%0%Dark skies, bright clouds and smooth skin: the most dramatic.
Orange55%45%0%Darker skies and smoother skin, less strongly than Red.
Yellow35%65%0%Slightly darker skies, so clouds stand out.
Green5%85%10%Lighter leaves and grass; darker skin and reds.
Blue5%25%70%Lighter skies and blues; darker skin and reds.

Standards

The sRGB transfer function and the luminance weights are those of the W3C CSS Color Module Level 4 (the weights as the luminance row of its sRGB-to-XYZ matrix, which Filter Effects rounds to four places). The sepia matrix, and Brightness and Contrast, follow the W3C Filter Effects Module Level 1, which says filter functions work on sRGB values.

Sources

Reviewed

Frequently asked questions

In photo editing, yes: both mean shades of grey, which is what this tool makes. Strictly, a two-tone image of only black and white is different; that is what scanned text pages want, and Document Scanner makes it.
A blue sky has little red in it. The red filter counts mostly red light, so the sky comes out dark while white clouds, which hold every colour, stay bright. Landscape photographers put a red or orange glass filter on the lens for this when shooting black-and-white film.
Not from the saved file: the colour is gone from it. Your original is not changed, so keep it if you may want the colour version.
Usually only a little. Browsers save a black-and-white JPG with three colour channels like any other, though identical channels compress well. For a smaller file, lower the Quality or use Image Compressor.
No. Your browser reads, filters and saves the images on your device; they are not sent to CornerTools or anyone else. To check, open the browser's developer tools at the Network tab and add an image: no request carries it. The first HEIC photo or TIFF image you add downloads a decoder from this site: a download to your browser, not an upload of your photo.

See also