Converting a JPG to PNG does not make anything transparent. The PNG comes back with alpha 255 on 1,920,000 of 1,920,000 pixels — one distinct alpha value in the whole file — because the JPG carries three colour components and no alpha component to carry over. The PNG specification settles it: if the alpha channel is not present, all pixels are fully opaque.
Any transparency a “JPG to PNG transparent” tool hands you was manufactured after the decode, by a colour key or a predicted mask. The key leaves the white in the edge RGB — measured 143.18, 183.49, 240.35 against a true 31, 111, 235 — and the mask is a guess, so no number on this page comes from one.
The JPEG frame header declares 3 components at 8-bit precision and has no alpha field to leave out; the PNG written from it is colour type 2, bit depth 8, 128,501 bytes, with alpha min 255 and max 255. Colour type 2 is Truecolor, three channels; type 6 is Truecolor with alpha, four — a file without an alpha channel is fully opaque by definition, which is what the specification says in section 4.5.
Eight of the nine results on this query were readable, and four of them sell transparency as part of the conversion: one advertises that it will “preserve transparency” while converting JPG, another promises “transparent photos” from a JPG upload, a third labels the output “JPG to PNG transparent file”, and a fourth says the same and then contradicts itself by admitting the conversion does not remove the background. None of the four prints a pixel count, a colour type or a byte figure, and I read both headers myself on 2026-10-30 rather than trusting a help page.
One result exposes the mechanism instead of hiding it — a hex field for the colour to remove and a similarity percentage that sets how far from that colour a pixel can sit — and that is a key: arithmetic on each pixel's distance from the chosen colour. Run at tolerance 3%, 12.5% and 25% on a white background, the semi-transparent share of the 14,025 true edge pixels came out at 10.50%, 4.15% and 4.21%. The same three tolerances drove 24.76%, 35.57% and 42.01% of the edge all the way to alpha 0, so the slider's real job is deciding how much edge to delete, not how soft to make it.
Keyed, the identical pixels weigh 149,475 bytes against 128,501 opaque: 20,974 bytes, or 16.32% more, for a fourth channel and a soft edge. Under those new alpha values the RGB is still blended with white — at 4× the keyed edge averages 143.18, 183.49, 240.35 where the true alpha file averages exactly 31, 111, 235 — and 70.59% of edge pixels sit more than 20 levels off the shape colour. That is the pale ring you see on a dark background and never see on white.
Left: a real alpha edge. Right: the same edge after a colour key, drawn to the measured values.
Three of the nine results are cutters rather than converters: they run a model over the picture and return a mask, which is why they can handle a background that is not one flat colour. On flat white a key is already exact — 0% of foreground pixels picked up partial alpha and 0.0003% of background stayed opaque at the tightest tolerance — so a mask buys nothing there and everything on a street scene. I ran no model, so the only thing I can state about that route is structural: the alpha comes from the mask, not from the conversion that preceded it.
Every route starts from an edge the JPG already damaged. Against the pre-JPEG render, on the same 14,025 edge pixels, quality 92 sits 5.50 levels away per channel on average (2.16% of full scale, max 71) and quality 60 sits 9.48 away (3.72%, max 86). “Lossless conversion” is true only in the narrow sense that the PNG reproduces the JPG's decoded pixels exactly; it is not lossless against the picture you started with, which is why one tolerance leaves a thicker rim on a quality-60 file than on a quality-92 one.
Alpha does not survive a JPG pass in either direction. PNG → JPG q90 → PNG, run twice, returned alpha 255 on 100% of pixels and 0 semi-transparent pixels both times, at 142,647 and 147,050 bytes. A transparent PNG that goes through a chat app, a print shop or an image proxy therefore comes back opaque, and the coverage data is not recoverable from the pixels. None of the eight readable results mentions this leg; all of them treat PNG as the destination.
| # | What was run 2026-10-30, one machine | Measured |
|---|---|---|
| M1 | 1,600 × 1,200 JPG q92 (57,647 B, SOF0, 3 components) → PNG | colour type 2, bit depth 8, 128,501 B; alpha min 255 / max 255; 1,920,000 of 1,920,000 px at 255; 1 distinct alpha value |
| M2 | opaque PNG vs keyed PNG, same pixels | 128,501 → 149,475 B, +20,974 B, +16.32% |
| M3 | white key at tolerance 3% / 12.5% / 25%, judged on 14,025 edge px | semi-transparent edge px 10.50% / 4.15% / 4.21%; edge cut to alpha 0: 24.76% / 35.57% / 42.01%; background left opaque 0.0003% / 0% / 0% |
| M4 | PNG → JPG q90 → PNG, twice | both passes: alpha 255 on 100% of px, 0 semi-transparent px; 142,647 → 147,050 B |
| M5 | JPG q92 / q90 / q60 vs the pre-JPEG render, edge px only | mean channel difference 5.50 / 5.77 / 9.48 levels = 2.16% / 2.26% / 3.72% of 255; max 71 / 80 / 86 |
| M6 | edge pixels, keyed PNG vs true-alpha PNG | mean RGB 143.18, 183.49, 240.35 vs 31, 111, 235; 70.59% of edge px off by >20 levels; alpha mean 158.5 vs 126.0 |
Flat background: key it, and expect about 4% of the edge to come back soft plus a white rim on anything darker than the background. Anything else: you need a mask or a file that already carries alpha, because converting supplies neither. Then check the output's colour type — 6 means an alpha channel exists, 2 means the word “transparent” on the button was decoration.
The file cannot be made transparent; what you can make is a new PNG carrying alpha, and that needs a colour key or a mask. A key works on a flat background and leaves the white in the edge — 70.59% of edge pixels measured more than 20 levels off the shape colour — while converting with neither gives alpha 255 on 100% of pixels.
Cut the subject out rather than converting it: a photograph's background holds thousands of colours, so the tolerance that removes a sky also removes a shirt. Either route ends in a file written as colour type 6, because that is the only way the alpha exists at all.
PNG, or WebP and AVIF where the consumer supports them, because a JPG has three components and no alpha plane. PNG pays for the channel in bytes: 128,501 opaque against 149,475 keyed on this test image, 16.32% more.
Transparency is how the file was written, not a setting switched on afterwards: colour type 6 or 4 carries an alpha channel, and type 2 has no alpha at all. Its one option is a tRNS chunk naming a single exact colour, which is on or off per pixel and cannot hold a soft edge.