How to Convert a PNG File to a JPG (Every Method, Explained)
Converting a PNG to a JPG is one of those tasks that sounds simple — and usually is — but the right approach depends on what device you're using, what software you have access to, and what you actually need the output file to do. Here's a clear breakdown of how the conversion works, what changes in the process, and where your setup starts to matter.
What Actually Happens When You Convert PNG to JPG
Before diving into methods, it helps to understand what's changing — because PNG and JPG are fundamentally different formats, not just different containers for the same data.
- PNG is a lossless format. Every pixel is stored exactly as-is, and it supports transparency (alpha channels). File sizes tend to be larger.
- JPG (or JPEG) is a lossy format. When you save as JPG, a compression algorithm discards some image data to reduce file size. It does not support transparency — any transparent areas get replaced with a solid background color (usually white by default).
This means conversion is a one-way street in terms of quality. Going from PNG to JPG introduces some compression loss. Going back from JPG to PNG later won't recover what was discarded.
Method 1: Built-In Tools on Windows
Windows includes a few ways to convert without installing anything.
Using Paint:
- Open the PNG file in Microsoft Paint
- Go to File → Save as
- Choose JPEG picture from the dropdown
- Name the file and save
Paint is fast and straightforward, but it gives you no control over compression quality — it applies a fixed setting. For simple conversions where file quality isn't critical, this works fine.
Using Photos app:
- Open the image in the Windows Photos app
- Click the three-dot menu → Save as
- Change the file type to JPEG
Same caveat applies — limited quality control, but useful for quick jobs.
Method 2: Built-In Tools on Mac
macOS makes this particularly clean through Preview, the default image viewer.
- Open the PNG in Preview
- Go to File → Export
- In the format dropdown, select JPEG
- Use the Quality slider to choose your compression level
- Save
The quality slider is a notable advantage here. Dragging it toward "Best" produces a larger file with less visible compression; dragging toward "Least" produces a smaller file with more noticeable artifacts. This gives Mac users more control over the output without installing anything extra.
Method 3: Browser-Based Converters 🌐
If you're on a device where you can't install software — or you just want something fast — browser-based converters handle PNG-to-JPG quickly.
Tools like Squoosh (by Google), ILoveImg, and similar services let you:
- Upload a PNG
- Set quality/compression level
- Download the resulting JPG
What to keep in mind: You're uploading image files to a third-party server. For personal screenshots or generic graphics, that's usually fine. For files containing sensitive information — scanned documents, ID photos, confidential visuals — it's worth using a local method instead.
Most of these tools run the conversion client-side (in the browser itself using WebAssembly), which reduces the privacy concern, but it's worth checking each tool's documentation to confirm.
Method 4: Image Editing Software
If you're working with images regularly, dedicated software gives you the most control.
Adobe Photoshop: Use File → Export → Export As, select JPG, and adjust quality with a precise numeric slider. The "Save for Web" legacy option is also available and shows file size estimates in real time.
GIMP (free, open-source): Go to File → Export As, type a filename ending in .jpg, and adjust quality in the export dialog. GIMP also lets you handle transparency intentionally — you can flatten the image to a chosen background color before exporting.
Affinity Photo, Pixelmator, Canva, and others all include equivalent export dialogs with JPG as a format option.
The difference between these tools and the basic built-in options is quality control and transparency handling. If your PNG has a transparent background, proper image software lets you decide what color fills that space before the JPG is created.
Method 5: Command Line 💻
For developers, sysadmins, or anyone batch-converting many files, the command line is efficient.
Using ImageMagick (cross-platform):
convert input.png output.jpg To set quality explicitly (0–100 scale):
convert -quality 85 input.png output.jpg ImageMagick can also batch-convert entire folders of PNGs in a single command, which makes it practical for workflow automation.
Using Python with Pillow library:
from PIL import Image img = Image.open("input.png").convert("RGB") img.save("output.jpg", quality=85) The .convert("RGB") step is important — it strips the alpha channel before saving as JPG, preventing errors.
The Variables That Change Your Results
| Factor | Why It Matters |
|---|---|
| Transparency in the source PNG | JPG can't store it — you need to choose what fills that space |
| Compression quality setting | Higher quality = larger file, less artifact; lower = smaller file, visible degradation |
| Original PNG resolution | Conversion doesn't change resolution unless you resize explicitly |
| Batch vs. single file | Changes which method is practical |
| Device/OS | Determines which built-in tools are available |
| Privacy of the image content | Affects whether browser tools are appropriate |
Where Quality Loss Becomes Visible
JPG compression artifacts are most noticeable in images with:
- Hard edges and text — compression blurs sharp lines
- Flat blocks of color — banding and noise appear in solid areas
- Gradients near detailed areas — compression has trouble with abrupt transitions
Photographic images tolerate JPG compression much better than screenshots, diagrams, or graphics with text. If your PNG is a photograph, even moderate compression settings often produce results that are visually indistinguishable from the original at normal viewing sizes. If it's a screenshot of a spreadsheet or a logo with text, quality loss becomes apparent faster.
The right quality setting — and even whether JPG is the right output format for your use — depends on what the image contains and what it's ultimately used for.