Skip to content

PNG to JPEG converter

PNG → JPG is for making photographic PNGs easier to share, while accepting lossy compression and no transparency.

  • Converted with Image engine · nothing stored
  • Free: 5 conversions a day · 5 MB each
  • Higher limits →

From real runs

What you get — and what changes

  • Alpha channel Lost

    JPEG has no alpha, so transparent PNG regions are flattened onto the background color.

  • Background Changed

    White is the default flattening background; choose another color before converting transparent artwork.

  • Photo detail Changed

    Quality 90 keeps most photo detail while introducing normal JPEG quantization.

  • Screenshots and text Changed

    Flat UI colors and small text can gain halos or ringing after JPEG compression.

  • Metadata Lost

    PNG textual chunks and most metadata are not carried into the JPG output.

  • File size Changed

    Photo-like PNGs commonly become 5–10× smaller, while screenshots can shrink less or even grow.

Sample conversions

Camera photo exported as PNG

Input
A 4000×3000 photographic PNG from an editor, with no transparency and continuous-tone shadows.
Output
A quality 90 JPG that was much smaller for sharing. Fine texture changed slightly under JPEG compression.

Transparent logo on a dark site

Input
A 1024×1024 PNG logo with transparent corners and antialiased edges intended for a dark background.
Output
A JPG flattened on white by default. The corners became white, so choosing a dark background would have matched the site better.

UI screenshot with small labels

Input
A PNG screenshot of a settings panel with flat gray fills and 12 px text.
Output
A JPG where text edges showed mild ringing. PNG remained the better archival format for that screenshot.

A real PNG → JPEG run

We converted our PNG sample (20 KB) with Image engine on 2026-10-20. It took 37 ms and produced a 39 KB JPEG file, 1.9× larger than the input. The engine raised 2 warnings, listed below.

Input · sample.png · 20 KB

1200 × 800 px, 8-bit, colour type 6

Width
1,200
Height
800
Encoding
8-bit, colour type 6

Output · sample.jpg · 39 KB

1200 × 800 px, baseline

Width
1,200
Height
800
Encoding
baseline
  • Transparency filled with #ffffff for JPG output.
  • Image metadata stripped from output.

Options and when to change them

background
Set this before converting transparent PNGs; white is safe for documents but wrong for dark UI artwork.
quality
Use the 90 default for general photos; lower it for thumbnails and raise it when gradients or text edges matter.
stripMetadata
Enable it when PNG text chunks or color notes should not be copied where the JPG encoder supports metadata.

Do it yourself

ImageMagick 7

bash
magick in.png -background white -flatten -quality 90 out.jpg

The explicit flatten step matters; otherwise transparent pixels can become black or depend on tool defaults.

Pillow 11

bash
from PIL import Image

im = Image.open("in.png").convert("RGBA")
bg = Image.new("RGBA", im.size, "white")
bg.alpha_composite(im)
bg.convert("RGB").save("out.jpg", quality=90)

Change the background color if the PNG was designed for something other than white.

PNG to JPEG by API or MCP

The HTTP API and the MCP server run the exact engine this page uses (Image engine); the response carries the same warnings the web converter shows. Check support first with GET /api/v1/pairs?from=png&to=jpg.

curl
curl -X POST https://filetypeconverters.com/api/v1/convert \
  -H "Authorization: Bearer $FTC_API_KEY" \
  -F "file=@input.png" -F "from=png" -F "to=jpg" \
  -F 'options={"dpi":96}' \
  --output output.jpg

Options this engine accepts for PNG → JPEG

KeyApplies toTypeDefault
dpiReading PNGnumber96
widthWriting JPEGnumber0
heightWriting JPEGnumber0
fitWriting JPEGcontain · cover · fillcontain
qualityWriting JPEGnumber90
backgroundWriting JPEGstring#ffffff
stripMetadataWriting JPEGbooleantrue
API reference

When this is the wrong conversion

  • Keep PNG for screenshots, diagrams, and text-heavy UI captures where JPEG ringing is noticeable.
  • Keep PNG when transparency is required; JPG always bakes in a solid background.
  • Use WebP or AVIF if the target accepts modern photo formats and smaller web delivery is the main goal.

PNG to JPEG questions

What happens to transparent PNG areas?

They are flattened onto the background color because JPG cannot store transparent pixels.

Why is my PNG → JPG bigger?

JPEG is efficient for photos, not every PNG. Screenshots, flat graphics, and already-optimized PNGs may not shrink and can sometimes grow.

Does PNG → JPG keep metadata?

Most PNG metadata is dropped. Do not use the converted JPG as the only copy if PNG text chunks are important.

What quality should I choose?

Quality 90 is the default. Lower values make smaller files with more artifacts; higher values reduce artifacts without making JPG lossless.