Guide · Images
How to Convert PNG to JPG to Shrink File Size
Updated 2026-08-15 · 4 min read
Someone “helps” by exporting a camera photo as PNG. You now have an 8.7 MB file of a sandwich. Nothing about that sandwich needed lossless color. The page, the email, and the CMS cap all wanted a JPEG that looks like a sandwich.
PNG to JPG on DevOkk.com is that conversion in the browser. No account. Quality slider. The PNG never needs to visit a cloud queue so you can attach lunch to a Slack thread.
The PNG that should never have been a PNG
PNG is the right save for a logo, a UI capture with readable type, or anything with a hole. It is the wrong save for a noisy photograph. Phones and “high quality export” checkboxes produce photographic PNGs out of habit. Those files are huge because PNG is trying to describe every bit of sensor grain exactly.
JPEG is built for that grain. At 80–85 quality, the sandwich looks like the sandwich. The file lands in hundreds of kilobytes instead of megabytes. That is the convert worth doing.
A full-page screenshot of a documentation site is a gray area. If it is mostly a photograph-like hero plus some type, JPEG at a high quality can be acceptable. If it is a table of settings with 11-pixel labels, JPEG will fuzz the labels. Stay on PNG or recapture at a smaller size.
Transparency is a one-way door
The moment you need the pixels behind the subject to stay empty, stop. JPEG will fill the emptiness. A PNG mark on a transparent field becomes a mark on a rectangle. You will not get the field back by converting to PNG later. That second convert only wraps the rectangle in a new container.
If you are unsure whether the PNG has alpha, drop it on a dark desktop background in any viewer. Checkerboard or the desktop showing through means stay on PNG (and compress dimensions if you must, not the codec).
Screenshots versus “Save as PNG” photos
A clean capture of a dialog - gray panels, 13px labels, a checkbox - should stay PNG. JPEG ringing on a Cancel button is how a bug report looks unprofessional.
A PNG that is a photograph in all but extension is the opposite: trees, food, a face, a storefront. Those compress well as JPEG. The giveaway is file size plus visual noise. If the PNG is 7 MB and looks like a camera, convert. If the PNG is 180 KB and looks like a UI, leave it.
Phone screenshots of other photos (you photographed a monitor) are photographs. Treat them as JPG candidates. Phone screenshots of Settings are UI. Treat them as PNG.
Convert, then make it fit the slot
Open PNG to JPG, add the file, start near 85. Download. Open the JPEG at 100%. Look at skin, sky, and any type that was in the PNG. If the type is trash, you picked the wrong candidate - go back to PNG. If the photo is fine and Gmail still refuses the attachment, run the JPEG through the compressor and cap the width to something a phone column can use.
Do not PNG → JPG on site A, then JPG → “optimize” on site B, then upload to the CMS which re-encodes again. One local convert, one local resize if needed, then the real destination.
A “transparent” PNG that is actually a photo on a white studio sweep is still a photograph. The white is pixels, not a hole. JPEG is fine. Check by putting the file on a dark background; if you cannot see the desktop through it, there is no alpha to protect.
What this will not fix
It will not make a tiny logo look better. It will make it look dirtier.
It will not recover a PNG that was already a bad export (double-compressed, stretched). Garbage in, slightly smaller garbage out.
It will not batch a folder of SKUs. One file in a tab. A catalog pipeline is a different product.
Metadata can survive. If the PNG was a phone photo, GPS might still be in the JPEG. Conversion is not redaction.
When the PNG is a photo in all but name, and you do not need a hole, use PNG to JPG. If you later need a work file from a JPEG, that is the other direction, with no miracles attached. For the web budget after you have JPEG, use the compression guide.
Frequently asked questions
When should a PNG become a JPG?
When it is basically a photograph or a busy screenshot with no transparent pixels, and the next consumer accepts JPEG. A 6–10 MB PNG from a phone or a ‘save as PNG’ habit is the usual candidate. Logos, icons, and UI with type should stay PNG.
What happens to the transparent parts?
They become opaque. JPEG has no alpha channel. You will get a solid background - often white or a color the encoder picks. If you needed the hole, do not convert.
Will the text in my screenshot stay sharp?
Worse than PNG, especially at low quality. A settings dialog or an IDE theme is a bad PNG-to-JPG candidate. A photo of a storefront that happens to be PNG is a good one. Look at the result at 100% before you send it.
Is this done in the browser on DevOkk?
Yes. PNG to JPG runs in the tab without an account. Keep the PNG until you have checked the JPEG in mail, the CMS, or the slide.
Should I compress after converting?
If the JPEG is still larger than the slot or the upload cap, yes - resize and quality on the compressor. Do not run three different JPEG exports from three websites. One convert, one compress, stop.
Can I get the transparency back later?
No. JPG to PNG after this will give you an opaque PNG of the flattened image. The hole is gone.
Related guides
More reading that links back to the same tools and workflows.
How to Convert JPG to PNG for Editing
Convert JPG to PNG before heavy edits. No upload.
4 min read
How to Compress Images for the Web Without Ruining Quality
Shrink JPG/PNG for faster pages. Compression stays in the browser.
4 min read
Why WebP Images Won’t Open in Outlook (and Older CMS Uploads)
WebP is fine on the web and hostile in email clients. When to convert to JPG or PNG in the browser instead of uploading Camera Roll to a converter ad.
10 min read
Convertio vs DevOkk: Cloud Format Hub vs Browser Tools
Convertio converts hundreds of formats in the cloud. Compare that with DevOkk’s no-account, in-browser PDF, image, and JSON tools - and when an upload is required.
8 min read