How to Convert JPG to PNG on Windows, Mac, iPhone and Android
You don’t always need a website to convert JPG to PNG. Every major operating system can do it with tools that are already installed, though some are much easier than others, especially for more than one file. This guide covers the built-in options on each platform, the fastest way to convert a whole folder, and the one pitfall that catches command-line users: sideways photos.
If you’d rather skip the steps, our browser converter works the same way on every device below, handles batches, and never uploads your files.
Windows
Paint (one file, every Windows version)
- Right-click the JPG → Open with → Paint.
- Choose File → Save as → PNG picture.
- Pick a folder and file name, then click Save.
Paint is reliable and keeps the full resolution. It only does one image at a time.
Photos app (Windows 11)
- Open the JPG in Photos.
- Click the … (See more) menu → Save as.
- In the Save as type list, choose PNG, then Save.
Batch converting a folder on Windows
Windows has no built-in batch converter. Your options are:
-
A browser converter: select all files at once in our converter and click Download all (ZIP).
-
ImageMagick (free, command line). After installing, open a terminal in the folder and run:
magick mogrify -auto-orient -format png *.jpgThis writes a PNG next to every JPG and leaves the originals untouched. The
-auto-orientflag matters; see the pitfall section below.
Mac
Preview (one or many files)
- Open the JPG in Preview.
- Choose File → Export.
- Set Format to PNG and click Save.
To convert several files at once, select them all in Finder and open them together in Preview. In the sidebar, select all thumbnails (⌘A), then choose File → Export Selected Images, click Options, set the format to PNG, and choose a folder.
Finder Quick Action (macOS Monterey and later)
- Select one or more JPGs in Finder.
- Right-click → Quick Actions → Convert Image.
- Choose Format: PNG, pick an image size (Actual Size keeps full resolution), and click Convert to PNG.
This is the fastest built-in batch method on any platform: the PNGs appear next to the originals.
Terminal (sips)
macOS includes a command-line image tool called sips:
sips -s format png photo.jpg --out photo.png
For every JPG in the current folder:
for f in *.jpg; do sips -s format png "$f" --out "${f%.*}.png"; done
iPhone and iPad
iOS has no “Save as PNG” button in the Photos app, but there are two good routes.
In Safari (no app needed)
- Open our JPG to PNG converter in Safari.
- Tap Choose JPG files → Photo Library, and select one or more photos.
- Tap Download PNG (or Download all (ZIP)). Files go to the Files app, in the Downloads folder.
Note that iPhone cameras save photos as HEIC by default, not JPG. When you pick them through Safari, iOS usually hands the page a JPG copy automatically, so this still works.
With the Shortcuts app
- Open Shortcuts and create a new shortcut.
- Add the action Select Photos (turn on Select Multiple if you like).
- Add Convert Image, and set the format to PNG.
- Add Save File (to choose a folder in Files) or Save to Photo Album.
- Run the shortcut, or add it to the share sheet so it appears when you share a photo.
Android
Android’s Gallery and Google Photos apps don’t offer PNG export. The simplest approach is a browser:
- Open our converter in Chrome.
- Tap Choose JPG files and select photos from your gallery or Files.
- Tap Download PNG. The file appears in your Downloads folder and in the Files app.
Because the conversion runs on your phone, it works even on slow connections once the page has loaded.
Linux
Most distributions ship with, or can easily install, ImageMagick:
magick input.jpg -auto-orient output.png
On older ImageMagick 6 installations the command is convert instead of magick. GIMP also works: open the JPG and use File → Export As, giving the file a .png name.
In code (Python)
With the Pillow library:
from PIL import Image, ImageOps
img = Image.open("photo.jpg")
img = ImageOps.exif_transpose(img) # apply the camera's rotation
img.save("photo.png", optimize=True)
optimize=True makes Pillow try harder to compress the PNG; it is slower but lossless.
The pitfall: sideways photos
Phones and cameras often save a portrait photo as a landscape image plus an EXIF orientation tag that says “rotate this 90° when displaying”. Photo viewers obey the tag, so the image looks upright. But PNG files normally don’t carry that tag, so if a converter copies the pixels without applying the rotation first, the PNG comes out sideways.
That is why the commands above include -auto-orient (ImageMagick) and ImageOps.exif_transpose (Python): they apply the rotation before saving. Without them, many portrait photos will be rotated in the output. Preview, Photos, Paint and browsers apply the rotation automatically, and so does our converter: in our tests a 1200×900 photo tagged “rotate 90°” came out as an upright 900×1200 PNG.
Which method should you use?
| Situation | Easiest method |
|---|---|
| One file on Windows | Paint → Save as → PNG picture |
| One or many files on Mac | Finder → Quick Actions → Convert Image |
| Photos on iPhone or Android | A browser converter, or Shortcuts on iPhone |
| A folder of hundreds of files | ImageMagick mogrify, or batch in a browser converter |
| Transparent background needed | JPG to transparent PNG or an image editor |
| Inside your own software | Pillow, sharp or ImageMagick, applying EXIF rotation |
A note on privacy
All the built-in methods above work offline on your own device. Many websites that convert images do not: they upload your file to a server, convert it there, and send it back. If your images are personal or confidential, either use a built-in tool or a converter that runs in the browser. You can check any website by opening your browser’s developer tools, switching to the Network tab and converting a file: if no large upload appears, the file stayed on your device.