How to convert JPEG to PNG on a Mac

Open the JPG in Preview, choose File › Export and pick PNG, or batch-convert a folder with sips. Do it when something insists on PNG, or when you will edit the image repeatedly and want to stop JPEG losing a little more detail on every save.

Updated · from 3 official sources · DRISH LABS

With Preview

  1. Open the JPG in Preview.
  2. Choose File › Export, click the Format pop-up menu and choose PNG, then click Save.
  3. To convert several, open them together in one Preview window, select them in the sidebar, then File › Export.

A whole folder, with one Terminal command

sips is built into macOS. Open Terminal, cd into the folder, and run:

Terminal
mkdir -p converted && for f in *.jpg; do sips -s format png "$f" --out "converted/${f%.*}.png"; done

The originals are left untouched; the converted copies go into a new folder beside them.

In the browser, on any computer

The free image converter on this site writes PNGs from JPGs in a batch, in your browser. Open the free tool. Nothing is uploaded.

What changes in the file

  • The PNG is bigger — often many times bigger — because it stores the JPEG's pixels losslessly, compression blocks and all.
  • Converting does not undo JPEG compression. Blockiness or blur already in the JPG is copied into the PNG exactly.
  • Converting does not make a background transparent. A JPG has no transparency to carry over; removing a background is a separate editing job.
  • Files named .jpeg rather than .jpg: change *.jpg to *.jpeg in the command, or run it once for each.

JPEG and PNG compared

FormatCompressionTransparencyAnimation
JPEGLossyNoNo
PNGLosslessYesNo

JPEG. The most widely supported photo format. Lossy, so every save throws a little detail away, and it has no transparency at all.

PNG. Lossless, with full alpha transparency — right for screenshots, logos and anything with sharp text, but several times larger than JPEG for photographs.

Questions

Does converting JPG to PNG improve the quality?
No. PNG stops further loss from that point on, but whatever detail the JPG already lost stays lost.
Why did my file get so much bigger?
JPEG throws detail away to stay small; PNG keeps every pixel. Storing a photograph losslessly costs space.
Will the PNG have a transparent background?
No. JPG files have no transparency, so the PNG has the same solid background the JPG had.

Sources

Requirements change without notice. Check the official source before you rely on a figure here.

Image Converter iconThe faster way

Image Converter

Batch convert HEIC to JPG, WebP, PNG and PDF on your Mac.

Not today? Get an email when Image Converter gets better
Image Converter on macOS