HEIC2ALLHEIC2ALL
Learn more

How to Convert PNG to JPG (and Handle Transparency)

Convert PNG images to optimized JPG with full control over background, quality, and size

Convert PNG to JPG

PNG is a fantastic image format. It preserves every pixel with lossless compression, supports transparency, and handles sharp text and logos beautifully. But it comes at a cost: file size. A single PNG screenshot can easily weigh several megabytes, and when you need to email a batch of images, upload to a platform that prefers JPG, or shave seconds off your website's load time, PNG's generous file sizes become a real obstacle.

The other common surprise hits when you convert a transparent PNG to JPG without thinking about the background. Because JPG has no concept of transparency, those see-through areas get filled in — often with black, which is rarely what you want. Logos floating on dark rectangles, product photos with mysterious dark halos, and headshots on pitch-black backdrops are all symptoms of the same issue.

This guide shows you how to convert PNG to JPG the right way using all2JPG, a free, 100% browser-based converter. You will learn how to pick the correct background color for transparent images, dial in quality settings for the smallest file at acceptable fidelity, and avoid the most common mistakes — all without uploading a single file to any server.

PNG vs JPG: A Quick Decision

Before converting, it helps to understand what each format does best. The table below summarizes the key differences so you can decide whether converting actually makes sense for your situation.

FeaturePNGJPGBest For
CompressionLosslessLossyPNG for pixel-perfect accuracy; JPG for smaller files
TransparencyFull alpha channelNot supportedPNG whenever transparency is required
File sizeLargerSignificantly smallerJPG for photos, email, social media
Sharp text & logosExcellentCan show artifactsPNG for graphics with hard edges
Photos & gradientsOverkillExcellentJPG for natural images and photographs
CompatibilityUniversalUniversalBoth work everywhere

Converting PNG to JPG makes sense when you have photographs or complex images stored as PNG, when you need to reduce file size for web delivery or email, or when a platform explicitly requires JPG uploads. If your image has transparency that must be preserved, or contains sharp text and line art where artifacts would be unacceptable, keeping PNG is the better choice. For a deeper comparison, see our JPG vs PNG: which one should you use? guide.

Step-by-Step: Convert PNG to JPG

Converting your PNG files with all2JPG takes under a minute. Follow these four steps:

Step 1: Open all2JPG and Add Your PNG

Navigate to all2JPG in any modern browser. Add your PNG image using whichever method is most convenient: drag and drop files onto the converter area, click the upload zone to open a file picker, paste an image directly from your clipboard, enter an image URL, import from cloud storage, or use the camera capture on mobile. all2JPG accepts files up to 10 MB each and supports batch conversion, so you can add multiple PNGs at once.

Step 2: Choose JPG Output and Set Quality

Select JPG as the output format. Use the quality slider to set your desired compression level — a value around 85% is a great starting point for most images. You can also enable progressive JPEG encoding for faster perceived loading on the web, choose a chroma subsampling mode (4:4:4 for maximum color fidelity, 4:2:0 for smallest file size), and adjust the DPI if the image is destined for print.

Step 3: Choose a Background Color for Transparent PNGs

If your PNG has transparent areas, this step is critical. JPG cannot store transparency, so those regions need a solid color. all2JPG lets you choose white, black, or a custom color to fill transparent pixels. White is the most common choice for documents and web images. Pick a color that matches the background where the image will be displayed.

Step 4: Convert and Download

Click the Convert button. The conversion runs entirely in your browser using WebAssembly (jsquash) — no data is uploaded anywhere. Once processing is complete, download your optimized JPG file. For multiple images, you can download all files at once.

Transparency: What Happens and How to Choose a Background

JPG does not support an alpha channel, which is the layer in a PNG that stores transparency information. When you convert a transparent PNG to JPG without specifying a background color, the converter must fill those transparent pixels with something. The default in many tools is black, which leads to the most common complaint: logos and cutout images appearing on an unexpected dark background.

Other symptoms of mishandled transparency include jagged edges around subjects (where semi-transparent anti-aliasing pixels meet the wrong background color), dark halos around text, and product images that look like they were pasted onto a black card.

Use the guide below to choose the right background color for your situation:

Use CaseRecommended BackgroundNotes
Web pages (light theme)White (#FFFFFF)Matches most website backgrounds seamlessly
Documents and presentationsWhite (#FFFFFF)Standard background for print and office documents
Dark-themed websitesMatch your site colorUse the custom color picker in all2JPG
E-commerce product photosWhite (#FFFFFF)Required by most marketplaces (Amazon, eBay)
Social media avatarsWhite or brand colorDepends on platform and personal preference

If your image requires transparency — for example, a logo that must float over different backgrounds — do not convert it to JPG. Keep it as PNG or use WebP instead. For more details on the black-background problem, see why JPG backgrounds turn black.

Quality, Progressive, and Color Settings

all2JPG gives you fine-grained control over your JPG output. Understanding these settings helps you strike the perfect balance between visual quality and file size.

Quality Cheat Sheet

Quality RangeVisual ResultFile Size Impact
95–100%Virtually indistinguishable from the originalLarge — only marginal reduction from PNG
80–90%Excellent; artifacts invisible at normal viewingModerate — typically 60–80% smaller than PNG
60–80%Good; minor artifacts visible on close inspectionSmall — great for web and email
30–60%Acceptable; noticeable softening and blockingVery small — thumbnails and previews
10–30%Low; visible compression artifacts throughoutMinimal — placeholder images only

Progressive JPEG

Enable progressive encoding to create JPGs that render in successive passes — the image appears blurry first, then sharpens as data loads. This improves perceived performance on the web because users see a preview almost instantly rather than waiting for the image to load line by line from top to bottom.

Chroma Subsampling

Chroma subsampling reduces the color resolution of the image while keeping luminance (brightness) detail intact. The human eye is more sensitive to brightness than color, so this is an efficient way to shrink files. Use 4:4:4 for no subsampling (full color fidelity), 4:2:2 for moderate savings, or 4:2:0 for the smallest files with minimal perceptible difference in photographs.

sRGB and DPI

Embed an sRGB color profile to ensure your JPG displays consistently across different monitors, browsers, and operating systems. If you are preparing images for print, set the DPI value to match your printer's requirements (typically 300 DPI for high-quality print). For screen-only use, DPI generally does not affect display but is useful metadata for design workflows. To learn about stripping unnecessary metadata, read our guide on how to remove EXIF metadata when exporting to JPG.

Conclusion

Converting PNG to JPG is straightforward once you understand the two key decisions: what to do about transparency and how to set quality. Choose a background color that matches where the image will live, pick a quality level that balances fidelity against file size, and let the converter handle the rest.

With all2JPG, the entire process happens in your browser — no uploads, no accounts, no software to install. Your files stay on your device, and the conversion takes seconds thanks to WebAssembly-powered processing. Whether you are optimizing a single product photo or batch-converting a folder of screenshots, all2JPG gives you the control and privacy you need to get the job done right.