Inside the converter
73 tools in one PNG to JPG converter
Every picture below was written by this converter's own code from a real photograph, and every figure is the size of the file it wrote.

01 Matte
Decide what the see-through part becomes
A JPEG has no alpha channel, so every clear pixel has to turn into a colour before the file is written. Choose white, page grey, the colour recovered from the cut-out's own edge, a hex value, or press the picture itself and take one of its own colours.
- White: 46,366 bytes
- Black: 41,949 bytes
- Brick red BF5A46, pressed on the apple's skin: 45,421 bytes

02 Edges
Clean the rim before the matte goes under it
A cut-out made against a white sheet keeps a little of that white in every half-covered edge pixel, and on a dark matte it shows as a pale outline. The repair recolours those pixels from the nearest solid pixel first, then flattens.
- Left: no repair, pale rim on black
- Right: 5,270 edge pixels recoloured
- Shown at 400%

03 Edges
Hard cut, or pull the edge in
When the soft edge itself is the problem — a dark ring baked into a cut-out, an icon made for another background — the half-covered pixels can be made all-or-nothing at a level you choose, or the visible picture can be pulled in by one to three pixels so the ring goes under the matte.
- Blend: 51,570 bytes
- Hard cut at 50%: 54,592 bytes
- Pulled in 2 px: 50,472 bytes

04 Quality
A quality number, or a size the file has to fit
Move the quality and the Save button's byte count follows it: the full-size file is written each time, so the number is the file, not a forecast. Or type a ceiling in kilobytes — and a floor for strict upload forms — and the highest quality that fits is found by encoding, not guessed.
- Quality 20: 21,693 bytes
- Quality 55: 40,928 bytes
- Quality 90: 93,585 bytes

05 Encoder
Colour detail is a setting, not a surprise
The precision encoder writes 4:4:4, 4:2:2 or 4:2:0 on request, can give the two colour channels their own quality, and reads what it wrote back out of the frame header. Red on white is where halved colour shows first.
- 4:4:4: 83,559 bytes, PSNR 41.95 dB
- 4:2:2: 74,032 bytes, 41.12 dB
- 4:2:0: 66,917 bytes, 40.28 dB
- 4:4:4, colour tables at 40: 71,983 bytes, 40.32 dB

06 Encoder
Baseline or progressive scans
A progressive JPEG sends a coarse version of the whole picture first and sharpens it in later scans; a baseline one arrives top to bottom. The pixels at the end are the same. The pictures here were decoded from the first bytes of one progressive file.
- After 15,920 bytes: block averages
- After 57,233: low brightness detail
- After 68,622: colour added
- All 187,840 (baseline: 191,752)

07 Errors
See exactly where the JPEG changed your picture
The error map decodes the saved file and compares it with the flattened PNG it came from, pixel by pixel. Blocking shows as squares, ringing as halos round type. A button takes the stage to the worst block at 1:1. The map only ever changes the screen.
- Quality 35, 4:2:0: 43,290 bytes, PSNR 35.1 dB
- 10.9% of pixels off by more than 8 levels
- Quality 90, 4:4:4: 0.17%

08 Batch
A folder at once, with a line for every file
Drop many PNGs, or a ZIP of them. The matte can be recovered per file, so a logo cut from a dark header and an icon cut from white each get their own. Every row prints its size, sampling, quality and scan type, and the ZIP can carry a receipt.
- Apple on white: 46,366 bytes
- Leggings on pale blue: 136,841 bytes
- Stop sign, no alpha: 83,559 bytes






