PNG to JPG Converter

Free PNG to JPG converter with adjustable quality and transparency handling. Batch convert multiple files, all in your browser.

PNG to JPG conversion applies lossy JPEG compression to a lossless PNG, typically cutting file size by 60-90% for photographs. This tool converts PNG files to JPEG in your browser using the HTML5 Canvas API, with a quality slider (1-100), a custom background colour to replace PNG transparency, batch mode for multiple files, and side-by-side previews so you can see what the compression has done before downloading.

Ad
Ad

About PNG to JPG Converter

How PNG to JPG Conversion Works

The tool decodes each PNG into a canvas, fills the canvas with your chosen background colour (because JPEG has no alpha channel), draws the image on top, then calls canvas.toBlob('image/jpeg', quality) to encode the result. JPEG compression uses the standard defined in ISO/IEC 10918-1 (published in 1992 by the Joint Photographic Experts Group). It splits the image into 8x8 blocks, converts each block to frequency coefficients using a Discrete Cosine Transform, then quantises those coefficients - higher quantisation steps discard more high-frequency detail and produce smaller files.

Worked example: A 1920x1080 PNG screenshot of a dashboard weighs 2.1 MB. Converted at quality 85, the JPEG comes out at around 280 KB - an 87% reduction. At quality 60, it drops to roughly 140 KB but you start seeing blockiness around text edges. At quality 95, it climbs back to about 550 KB with no visible compression artefacts.

Why Convert PNG to JPG?

ReasonExplanation
Smaller file sizeJPEG lossy compression produces files 5-10x smaller than PNG for photographs
Faster page loadsSmaller images mean faster website loading and better performance scores
Email and upload limitsMany platforms have file size limits that PNGs of photos can exceed
Platform requirementsSome services only accept JPEG uploads
Storage savingsA folder of 1,000 PNG photos might take 5 GB vs 800 MB as JPEG

Handling Transparency

JPEG does not support transparency. When converting a PNG with transparent areas, the tool composites the image onto a background colour of your choice:

PNG Has Transparency?What HappensBackground Colour Recommendation
No transparencyDirect conversion, no background neededDoes not matter
Transparent backgroundTransparent areas filled with your chosen colourWhite for documents, match your page colour for web use
Semi-transparent overlaysAlpha blended onto the background colourCheck the preview to make sure it looks right

The default background is white, but you can pick any colour using the built-in colour picker. This is useful when placing logos on coloured backgrounds or dark-themed pages.

Quality Slider Guide

QualityFile Size ReductionVisual QualityBest For
95-100%30-50% smaller than PNGVirtually identical to originalPrint, archival, when quality is critical
80-94%60-80% smaller than PNGNo visible difference at normal viewingWeb images, blog posts, product photos
60-79%80-90% smaller than PNGSlight softness in fine detailsThumbnails, social media, email
40-59%90-95% smaller than PNGNoticeable artefacts around edges and textQuick previews, low-bandwidth situations
Below 40%95%+ smaller than PNGHeavy artefacts, blocky appearanceNot recommended for most uses

For most web use, 80-85% quality gives the best balance between file size and visual quality.

File Size Expectations

Image TypeTypical PNG SizeJPG at 85% QualitySavings
Photograph (1920x1080)3-6 MB200-400 KB~90%
Screenshot with text300-800 KB100-200 KB~70%
Simple graphic (few colours)20-80 KB30-100 KBMay actually increase - keep as PNG
Illustration (many colours)500 KB - 2 MB100-300 KB~75%

Important: for simple graphics with few colours and sharp edges (logos, icons, diagrams), PNG is often smaller than JPEG. Converting these to JPEG saves nothing and adds artefacts. Only convert to JPEG when dealing with photographs or complex images with many colours.

Batch Conversion

Select multiple PNG files at once or drag them into the drop zone. All images are converted with the same quality setting and background colour, each with its own preview and download link. This is useful for processing folders of screenshots or product photos in one go. If you change the quality slider or background colour after converting, the "Re-convert all with current settings" button re-runs every file through the new settings without re-uploading. There is a 100 MB per-file size cap to keep browser memory use predictable - most PNG files, even high-resolution photos, sit well below that limit.

What Gets Lost in Conversion

FeatureIn PNGIn JPEG
TransparencyFull alpha channel (256 levels)Not supported - replaced with background colour
Lossless qualityEvery pixel preserved exactlyLossy compression - some detail lost
Colour depthUp to 16-bit per channel8-bit per channel only
MetadataPreserved through CanvasStripped during Canvas export

PNG vs JPEG: When Each Format Wins

PNG is better for screenshots, UI graphics, logos, diagrams, and anything with sharp edges, text, or flat colour. JPEG wins for photographs and continuous-tone images with gradients. The reason comes down to how each format encodes information.

PropertyPNGJPEG
CompressionLossless (DEFLATE/zlib)Lossy (DCT-based per ISO 10918-1)
Transparency8-bit alpha channel (256 levels)None
Colour depthUp to 16-bit per channel (48-bit colour)8-bit per channel only (24-bit colour)
Typical chroma samplingFull 4:4:44:2:0 below quality 90, 4:4:4 at 90+
Best for photographsLarge files, no gainSmall files, minimal visible loss
Best for text/line artCrisp edges preservedRinging artefacts around edges
AnimationAPNG variantNo (use MJPEG video instead)
Released1996 (W3C/ISO 15948)1992 (ISO/IEC 10918-1)

JPEG is so efficient for photos because the human visual system is far more sensitive to luminance (brightness) than chrominance (colour). Below quality 90 most JPEG encoders, including the browser's built-in encoder, apply 4:2:0 chroma subsampling, storing colour information at half the horizontal and vertical resolution of brightness. At quality 90 and above, most encoders switch to 4:4:4 (no subsampling), which is why file size jumps noticeably when crossing that threshold.

How the Quality Setting Maps to File Size

Lower quality means coarser quantisation of the DCT coefficients - the encoder throws away more high-frequency detail, so the file is smaller but edges look softer and flat areas develop 8x8 blocking. The relationship is not linear. Going from quality 100 to 90 cuts file size roughly in half with no visible change on a normal monitor. Going from 90 to 80 cuts another 30-40%. Below 70, artefacts become visible on any content with text or sharp edges. Below 50, even smooth photographs start to look bad.

For most web use, 80-85% gives the best size/quality trade-off. If the image is going to be viewed at full resolution (retina-quality product photography, photography portfolios), stay at 90 or above. For thumbnails or social media previews, 70-75 is usually acceptable because the viewer is small.

Browser Canvas Encoding vs Dedicated Encoders

Browser JPEG encoding (what this tool uses) is fast and produces acceptable files, but it is not as efficient as dedicated encoders like MozJPEG or Guetzli. For the same visual quality, MozJPEG typically produces files 5-15% smaller than the default libjpeg encoder most browsers ship with. The trade-off is speed: MozJPEG can be 3-5x slower. For a browser tool that needs to process dozens of images instantly, the native Canvas encoder is the right choice. If you are preparing production assets for a high-traffic site, consider running the output through a build-time tool like Sharp, ImageOptim, or Squoosh for an extra few percent of savings.

Another factor is progressive vs baseline encoding. Baseline JPEGs load top-to-bottom as bytes arrive. Progressive JPEGs load in passes, showing a blurry version first then sharpening. Progressive files are typically 2-8% smaller and feel faster on slow connections. The browser Canvas API always produces baseline JPEGs. If progressive loading matters, a build-time tool is again required.

Common Mistakes When Converting PNG to JPG

  • Converting screenshots or logos to JPEG. PNG's lossless compression handles flat colour and sharp edges efficiently. Running a UI screenshot through JPEG adds ringing around text and may increase the file size.
  • Re-saving an existing JPEG as a new JPEG at lower quality. Every JPEG save is destructive. Artefacts compound. Keep an archival PNG or high-quality JPEG, and export fresh JPEGs at the target quality from that master.
  • Picking the wrong background colour for transparency. If your logo will sit on a dark website, exporting with a white background creates an ugly rectangle. Match the background colour to the page where the image will be used.
  • Using quality 100. Quality 100 does not mean lossless - JPEG is always lossy. It just minimises quantisation, producing a huge file for almost no visible benefit over quality 95. If you need lossless, stay with PNG.
  • Ignoring the preview. Semi-transparent PNG overlays (drop shadows, glows, anti-aliased text) can composite onto the background colour in surprising ways. Always check the side-by-side preview before downloading.

Need the opposite conversion? Use the JPG to PNG converter. You can also reduce file sizes further with the image compressor, or resize first with the image resizer for extra savings. All processing happens client-side using the Canvas API, so your images never leave your device.

Sources

Frequently Asked Questions

What happens to transparent areas in my PNG?

JPEG does not support transparency. The converter fills transparent regions with a background color of your choice (white by default). You can pick any color using the built-in color picker before converting.

How does the quality slider work?

The slider controls JPEG compression from 1% (smallest file, lowest quality) to 100% (largest file, best quality). A setting around 80-90% offers a good balance between file size and visual quality for most images.

Is my image uploaded to a server?

No. The conversion happens entirely in your browser using the Canvas API. Your images never leave your device, ensuring complete privacy and fast processing.

Can I convert multiple PNGs at once?

Yes. Batch mode lets you select or drag-and-drop multiple PNG files. Each one is converted with the same quality and background-color settings and can be downloaded individually.

Link to this tool

Copy this HTML to link to this tool from your website or blog.

<a href="https://toolboxkit.io/tools/png-to-jpg-converter/" title="PNG to JPG Converter - Free Online Tool">Try PNG to JPG Converter on ToolboxKit.io</a>