Skip to content

FREE · NO ACCOUNT

Convert PNG to JPG

Choose JPEG quality and confirm a background, then choose PNG files. Conversion and downloads start automatically.

Convert your images

Add as many files as you need. Up to 32 MiB per file. Keep this tab open until your downloads finish.

JPG options

JPG uses this background for transparent areas. New settings apply to files you choose or retry next.

Conversion starts as soon as you choose files. Files download automatically when ready. Your browser may ask to allow multiple downloads.

About this tool

JPG does not support transparency. Choose and confirm a background.

JPEG compression is lossy; review fine edges and text.

Multiple PNG files, up to 32 MiB each. Unsupported precision is rejected rather than silently reduced.

Work with images in Python

Use Python and Pillow when you want to repeat this task in a script. The example runs on your computer and saves a new image.

Convert PNG to JPG with Python and Pillow

Replace transparency with a white background and save a JPG at quality 85.

View code and setup

Before you start

  • Install Python 3 with virtual-environment support.
  • Put a copy of your image in a working folder. Use the input filename shown in the script, or change it to match your file.
  1. Run the setup commands for your operating system to install Pillow in a local .venv.
  2. Save the Python code as convert_image.py in the same folder, then run it with the command for your operating system.
  3. The script saves a new image. Change the output filename before running if you want to keep an earlier result.
Install Pillow on macOS or Linux
python3 -m venv .venv
.venv/bin/python -m pip install Pillow

Install Pillow on Windows
py -3 -m venv .venv
.venv\Scripts\python.exe -m pip install Pillow

Python script
from PIL import Image

with Image.open("input.png") as image:
    if getattr(image, "n_frames", 1) != 1:
        raise ValueError("Choose a single still image")
    rgba = image.convert("RGBA")
    background = Image.new("RGB", rgba.size, "white")
    background.paste(rgba, mask=rgba.getchannel("A"))
    background.save("converted.jpg", quality=85)

Run on macOS or Linux
.venv/bin/python convert_image.py

Run on Windows
.venv\Scripts\python.exe convert_image.py

Limits and output

  • JPEG is lossy and has no transparency. Change the white background deliberately before running the script.
  • This example converts to 8-bit RGB and does not retain all metadata or colour profiles. Review edges, text and colours. Animation is rejected.

Documentation: Pillow image operations; Pillow tutorial and installation

Common questions

What happens to transparent areas?

They are composited onto the background color you choose and confirm before encoding.

Are JPG and JPEG different formats?

They are two filename extensions for the same image format. This tool downloads a .jpg file.