Guide

Why red text looks blurry after a screenshot is compressed

JPEG 4:4:4 kept the red lettering more clearly defined than JPEG 4:2:0 in our screenshot, but it did not restore the source. A lossless WebP preserved every decoded RGB value and was smaller than either JPEG: 30,212 bytes, against 38,376 and 47,247 bytes. The two lossy WebP files were smaller again, with visible changes around the letters.

Last updated:

Bitinz team · How we write and check our content

A screenshot with red and black text

We made a document-management interface for the test, with a red upload warning above a file list. It uses 14 px text, a pale background and ordinary system fonts: the kind of detail someone pastes into a support ticket or product documentation. We used a browser screenshot rather than photographing a screen, so there was no camera blur to explain the result.

We captured the 1024 × 640 interface in Google Chrome 157.0.8103.78 on macOS 27.0.1, at a device pixel ratio of 1. The source was a PNG, and we did not resize it, change its text or sharpen it before encoding.

Source screenshot, PNG

The original document interface, with a red upload warning and a black instruction below it.
Look at the red warning near the top. The black instruction directly below it is the same font size, which makes it a useful comparison.

What we encoded

For JPEG, we used libjpeg-turbo 3.2.0 at quality 80, with optimized Huffman coding and baseline output. The only setting changed between the two JPEG files was the sampling arrangement. For WebP, we used libwebp 1.6.0 at quality 80 and method 4, once with its default colour conversion and once with -sharp_yuv. A separate run used its lossless mode.

VersionBytesChange from source PNG
Source PNG60,758—
JPEG, quality 80, 4:2:038,37636.8% smaller
JPEG, quality 80, 4:4:447,24722.2% smaller
Lossy WebP, quality 8017,81870.7% smaller
Lossy WebP, quality 80, sharp YUV18,26669.9% smaller
Lossless WebP30,21250.3% smaller

These are settings for this screenshot, not matched-quality measurements across formats: a JPEG quality number and a WebP quality number do not define the same operation. The PNG was Chrome's screenshot output, not the smallest possible PNG of these pixels.

The red letters changed more than the black instruction

We decoded all six files in Chrome and drew the same 340 × 70 region into an sRGB canvas. The crops below enlarge those pixels three times with nearest-neighbour scaling, which makes individual edge pixels visible without adding a smoothing filter.

Source PNG

The red warning and black instruction from the source screenshot, enlarged three times.

JPEG, quality 80, 4:2:0

The same text from the 4:2:0 JPEG, with a wide colour fringe around the red letters.

JPEG, quality 80, 4:4:4

The same text from the 4:4:4 JPEG, with sharper red edges and some artefacts.

Lossy WebP, quality 80

The same text from the default lossy WebP.

Lossy WebP, quality 80, sharp YUV

The same text from the lossy WebP made with sharp YUV.

Lossless WebP

The same text from the lossless WebP, identical to the source.
Compare the thin red stems in “file” and the spaces inside the red letters, then the black instruction. JPEG 4:2:0 has a wider, muddier colour fringe. JPEG 4:4:4 places the red edge more sharply but still shows JPEG artefacts in the pale pixels around it.

The text did not simply become uniformly soft. The red warning acquired a coloured fringe that was much less visible around the black instruction. Changing JPEG to 4:4:4 helped with that problem, at a cost of 8,871 bytes, 23.1% more than the 4:2:0 file.

Sharp YUV changed the red edges compared with the default WebP, and both still differed from the source. The setting added 448 bytes here, about 2.5%, so check it on your own text rather than expecting it to reproduce a PNG.

The lossless WebP crop matched the PNG crop, and so did all 1,966,080 decoded RGB bytes of the screenshot. That check applies to this opaque image; we did not test hidden RGB values under transparent pixels.

What 4:2:0 removes

A common JPEG arrangement separates brightness from two colour-difference channels. With 4:2:0 sampling, each colour channel keeps half the horizontal and half the vertical samples; with 4:4:4, those channels keep the full grid.

That reduces colour samples; it does not make the whole file a quarter of the size. Brightness data, quantization, image content and entropy coding all affect the byte count, and our 4:2:0 JPEG was only 18.8% smaller than its 4:4:4 counterpart.

Small saturated lettering makes the difference easy to see. A narrow red stroke on an almost white background puts a large colour change into very few pixels, and rebuilding the reduced colour channels spreads that transition. Black text keeps a strong brightness edge even when the colour grid is reduced.

JPEG 4:4:4 still quantizes the image and is not a lossless setting; our crop shows changes beside the strokes as well as along them. Lossy WebP also uses 4:2:0 colour sampling. -sharp_yuv changes how RGB is converted to YUV, but it does not make lossy WebP 4:4:4. Lossless WebP uses a different representation and does not discard those colour samples.

Check a screenshot before choosing the format

Start with the original capture. Inspect a red, blue or magenta label at 100% zoom, then enlarge the same area to find any colour fringe. Include black text and a thin border in the crop if the page has them; checking only a large photo elsewhere in the screenshot can miss the damaged lettering.

We verified these commands with the tools above. ImageMagick first makes an uncompressed PPM input that cjpeg accepts:

magick screenshot.png -depth 8 screenshot.ppm
cjpeg -quality 80 -sample 2x2,1x1,1x1 -baseline -optimize \
  -outfile screenshot-420.jpg screenshot.ppm
cjpeg -quality 80 -sample 1x1,1x1,1x1 -baseline -optimize \
  -outfile screenshot-444.jpg screenshot.ppm

Reading the JPEG frame headers confirmed the settings: the first file stored a 2 × 2 sampling factor for brightness and 1 × 1 for each colour component, and the second stored 1 × 1 for all three. Both stayed 1024 × 640.

To test the WebP alternatives:

cwebp -quiet -q 80 -m 4 -metadata none screenshot.png -o default.webp
cwebp -quiet -q 80 -m 4 -sharp_yuv -metadata none screenshot.png -o sharp.webp
cwebp -quiet -lossless -z 6 -exact -metadata none screenshot.png -o lossless.webp

Keep the source when you make these versions: re-encoding a damaged JPEG as 4:4:4 cannot bring back colour detail that is already gone. For screenshots with private account details, crop them on your own computer before sharing.

To shrink a screenshot without leaving PNG, compress the PNG instead of converting it, then compare the red text at 100%; Bitinz keeps the format unless you choose a conversion. For the size cost of high-density captures, see the Retina screenshot test, and for PNG in general, how to reduce PNG file size.

Compress imagesMake JPG, PNG and WebP files smaller in their own format, in batches and for free.Compress images

FAQ

Should I use PNG or JPEG for a screenshot with small text?
Try PNG or lossless WebP first when small lettering must stay unchanged, and compare the real file sizes: our lossless WebP was smaller than either JPEG. If an upload form needs JPEG, start from the original screenshot and compare a 4:4:4 export with the usual export at the same quality setting.
Does WebP quality 100 preserve all the text pixels?
Choose lossless mode when exact pixels are required. The encoder documentation separates that mode from lossy quality settings, including quality 100. In cwebp, use the lossless option, and add the exact option if invisible RGB values under fully transparent pixels must also be kept.
Can I fix an existing blurry screenshot by changing its sampling?
Export again from the original capture or take a new screenshot. Changing the sampling of a damaged file cannot rebuild missing colour detail. If only the damaged copy is left, keep it as the source for later edits instead of saving new JPEG generations.

Tools in this guide

Sources

  1. Bitinz: Screenshot text test: files, measurements and commands (2026-11-16)
  2. libjpeg-turbo: cjpeg and jpegtran usage
  3. Google for Developers: WebP container specification
  4. Google for Developers: cwebp encoder options