How to Convert PNG to JPG — Transparency, Quality Settings, and When It's Right
PNG to JPG is the conversion you make when file size matters more than lossless fidelity. A photographic PNG at 2 MB becomes a 200–400 KB JPG — a dramatic reduction that makes a real difference for email attachments, social media uploads, and website performance. But the conversion has two important consequences most people overlook: transparency becomes a solid background, and quality loss is permanent and determined by the quality setting you choose.
This guide explains exactly what happens to transparent pixels, how to set quality correctly (it matters more than people think), and covers every scenario where PNG to JPG is the right decision.
Convert PNG to JPG — Free, No Upload
Convert PNG to JPG in your browser. No server, no signup, no file size limit.
Quick answer: Converting PNG to JPG trades lossless quality for smaller file size — JPEG is typically 60–80% smaller for photographs. Use Convertlo's PNG to JPG converter to convert in-browser. Note: any transparent areas in the PNG will be filled with a solid background (white by default).
The Transparency Problem: What Happens to Transparent PNG Pixels
JPG does not have an alpha channel. Every pixel in a JPG must be a solid, opaque color. When you convert a transparent PNG to JPG, the encoder needs to decide what color to put in the transparent areas. This is called alpha compositing.
Most converters default to filling transparent areas with white (#FFFFFF). This is usually the right choice for:
- Product photos on white backgrounds (e-commerce, Amazon listings)
- Documents and presentations with white page backgrounds
- Email images where white matches the email background
White is wrong for:
- Dark-themed websites where the image will sit on a dark background
- Logos designed for colored backgrounds
- Social media posts with a specific brand color background
If you need a specific background color, use a tool that lets you set it: Photoshop (flatten with custom background layer), GIMP (Script-Fu or set background color before flattening), or ImageMagick with the -background flag.
When Transparency Is Not an Issue
If your PNG has no transparent pixels (opacity: 100% everywhere), the background fill is irrelevant — the conversion is a straightforward lossless-to-lossy encode of the visible pixels. Most photographic PNGs fall into this category.
Quality Setting — Why It Matters More Than People Think
When converting PNG to JPG, the quality setting is the single most important parameter. Unlike a PNG-to-PNG conversion (which has no quality variable), PNG-to-JPG is a lossy encode, and the quality number controls how aggressively the encoder discards pixel data.
Essentially lossless — artifacts invisible even at 400% zoom. File is nearly as large as source PNG. Avoid for web use. Only for print-quality archival where you must use JPG format.
Excellent for product photos, portfolio images, editorial content. Artifacts invisible at normal viewing. 60–75% smaller than PNG. Recommended for high-importance images.
The sweet spot for most web use. 75–85% smaller than PNG. Visible only under close inspection at 200%+ zoom. Best balance of quality and size.
Aggressive compression. Fine for thumbnails and small images. Artifacts visible on close inspection for large images. 80–88% smaller than PNG.
Visible artifacts on most images. Blockiness appears at 8×8 grid boundaries. Acceptable only for very small thumbnails or heavily cached preview images.
The most common mistake: Using quality 100 thinking it means "best." At quality 100, JPG is still lossy — and the file size is nearly as large as the lossless PNG source. You pay almost all the cost with minimal benefit. For web-optimized JPGs, quality 82–85 is almost always the right starting point.
When PNG to JPG Is the Right Move
| Use Case | Convert to JPG? | Reason |
|---|---|---|
| Email attachment (photograph) | Yes | JPG is 5–10x smaller; email has file size limits; no transparency needed |
| Social media post (photo) | Yes | Platforms re-compress anyway; starting with JPG gives better control |
| Website hero image (photo) | Consider WebP instead | WebP is 25–34% smaller than JPG at same quality — even better |
| Logo with transparency | No | Transparency lost; use SVG or PNG for logos |
| Screenshot with text | No | JPG degrades text clarity with blocking artifacts; use PNG |
| Print-quality photo archive | No | Keep PNG or TIFF for archival; JPG is lossy even at quality 95 |
| WhatsApp / Telegram photo share | Yes | Apps re-compress images anyway; JPG starts at smaller size |
Method 1: Convertlo — Free Browser Tool
- Open convertlo.pro/png-to-jpg.html.
- Drag and drop your PNG files. Transparent PNGs are supported — transparent areas will be filled with white.
- Adjust the Quality slider. Default is 82 — a good starting point for most images.
- Click Convert to JPG. Everything runs in your browser.
- Download the converted JPG files.
Batch mode: drop multiple PNGs at once for parallel conversion. Works on all platforms including iPhone Safari and Android Chrome.
Method 2: ImageMagick — Custom Background Color
- Install ImageMagick:
brew install imagemagick(macOS) orsudo apt install imagemagick(Linux). - Use the
convertcommand with-backgroundand-flattento control the transparency fill.
# Basic PNG to JPG (transparent areas become white) convert input.png -background white -flatten -quality 82 output.jpg # Custom background color (hex) convert input.png -background '#1a1a2e' -flatten -quality 82 output.jpg # Batch: all PNGs in folder with quality 82 for f in *.png; do convert "$f" -background white -flatten -quality 82 "${f%.png}.jpg" done # Python Pillow: convert with custom background from PIL import Image img = Image.open("input.png").convert("RGBA") bg = Image.new("RGB", img.size, (255, 255, 255)) # white bg bg.paste(img, mask=img.split()[3]) # use alpha as mask bg.save("output.jpg", "JPEG", quality=82)
Method 3: Photoshop — Control Every Aspect
- Open your PNG in Photoshop.
- If the PNG has transparency, create a new solid color layer below the image layer (Layer → New Fill Layer → Solid Color). Choose your background color.
- Flatten the image: Layer → Flatten Image. This composites the transparent areas against your chosen background.
- Go to File → Export → Export As…
- Select JPEG from the Format dropdown. Adjust the Quality slider.
- Click Export All and save.
Photoshop's "Save for Web" (Shift+Ctrl+Alt+S) gives an even more detailed view — it shows the exact file size at each quality setting and lets you compare the output in a split-screen preview alongside the original.
Convert PNG to JPG Right Now
Free, no upload, adjustable quality. Or convert to WebP for even smaller files.
Frequently Asked Questions
What happens to transparency when converting PNG to JPG?
-background flag, Photoshop (flatten with a custom background layer), or GIMP (set background color before flattening).What quality setting should I use for PNG to JPG?
Does converting PNG to JPG lose quality?
Why is my PNG so much larger than the JPG?
Can I change the background color when converting PNG to JPG?
convert input.png -background '#FF0000' -flatten output.jpg for a red background. In Photoshop: create a solid color fill layer below your image layer, flatten, then export as JPG. In GIMP: set the background color in the toolbox, then use Image → Flatten Image before exporting.