Format Guide13 min read

10 Ways to Convert Any Image to JPG on Any Device

Turn any image into a JPG - Windows, macOS, iPhone, Android, Linux, browser and command line. Plus how to find out what your file really is when the extension is lying.

By ImageGuide Team·Published August 15, 2026·Updated August 15, 2026
jpgjpegconversionwindowsmacosiphoneandroid

Something needs a JPG. A job application portal, a printing service, a government form, an old piece of software, a colleague whose computer will not open what you sent.

Every device you own can already do this without installing anything. This guide covers ten routes, one per situation, plus the diagnostic step that solves a surprising share of “it says JPG but it will not accept it” problems.

Pick Your Method First

# Method Platform Batch? Install?
1 Browser converter Any Yes No
2 Windows Photos and Paint Windows No No
3 PowerToys Image Resizer Windows Yes Yes
4 macOS Finder Quick Actions macOS Yes No
5 sips macOS Yes No
6 iPhone Shortcuts iOS Yes No
7 Android gallery and Files Android Limited No
8 ImageMagick Any Yes Yes
9 Google Drive and Office Any Limited No
10 Online converters Any Yes No

First: What Is Your File Actually?

Before converting anything, check what you have. A file extension is just text in a name, and it is wrong more often than people expect.

Common causes: a website served a WebP but the link said .jpg; someone renamed a .png by hand; a phone saved a HEIC with a JPG extension; a design tool exported a TIFF into a .jpg name.

Upload forms usually check the file’s actual contents, not its name. That is why a file called photo.jpg gets rejected as “not a valid JPEG”.

macOS and Linux:

file photo.jpg
# photo.jpg: PNG image data, 1920 x 1080, 8-bit/color RGBA

Any platform, with ImageMagick:

magick identify photo.jpg
# photo.jpg PNG 1920x1080 1920x1080+0+0 8-bit sRGB 1.4MB

Windows, no install: open the file in Paint, then File → Save as. The dialog pre-selects the real format.

If the answer is not JPEG, renaming it will not help. Convert it properly using one of the methods below.

Should It Be a JPG at All?

Worth thirty seconds before you convert a hundred files.

Your image Right format
Photograph JPG
Screenshot, text, UI capture PNG
Logo, icon, line art PNG or SVG
Anything transparent PNG or WebP
Going on a web page WebP or AVIF

JPEG was designed for photographs and does badly on everything else. A screenshot saved as JPG gets fuzzy grey halos around every letter and usually comes out larger than the PNG would. If the destination demands JPG, fine — that is a real constraint. If it does not, keep the format that suits the content.

1. A Browser Converter

Works on any device, installs nothing, and nothing is uploaded.

The conversion runs in your browser through WebAssembly, so a batch of camera photos never leaves the machine. This is the right default on a work laptop where you cannot install software.

2. Windows Photos and Paint

Photos: open the image, click Save as, choose JPG from the format dropdown.

Paint: open, then FileSave asJPEG picture. Paint handles PNG, BMP, GIF, TIFF, WebP and HEIC (if the HEIF extension is installed).

Neither gives you a quality setting, and both write a fairly high quality by default, so file sizes come out larger than necessary. Neither handles batches. For more than three or four files, use method 3.

3. PowerToys Image Resizer

The batch converter Windows should ship with.

  1. Install Microsoft PowerToys — free, from Microsoft
  2. Select any number of images in File Explorer
  3. Right-click → Resize with Image Resizer
  4. Click the settings link in the dialog to choose JPEG as the output format and set the quality
  5. Pick Actual size if you want only the format changed

It writes new files rather than overwriting, and processes hundreds at once. The quality slider defaults to 90, which is reasonable; 85 is better for anything going online.

4. macOS Finder Quick Actions

Built in since Monterey, and most Mac users have never noticed it.

  1. Select any number of images in Finder
  2. Right-click → Quick ActionsConvert Image
  3. Choose JPEG
  4. Pick Actual Size, or one of the preset smaller sizes
  5. Tick Preserve Metadata to keep dates and location

It reads HEIC, PNG, TIFF, WebP, GIF and BMP, and converts a whole camera roll in one action. Transparency is flattened onto white.

Preview’s File → Export does the same for a single file, with a quality slider.

5. sips

On every Mac, no install, and the right tool for scripts.

# One file
sips -s format jpeg -s formatOptions 90 image.png --out image.jpg

# A folder of mixed formats
mkdir -p jpg
for f in *.png *.heic *.tiff *.webp; do
  [ -e "$f" ] || continue
  sips -s format jpeg -s formatOptions 90 "$f" --out "jpg/${f%.*}.jpg"
done

# Convert and cap the long edge at 2000 pixels
sips -s format jpeg -s formatOptions 85 -Z 2000 image.png --out image.jpg

formatOptions accepts low, normal, high, best, or a number from 1 to 100.

6. iPhone Shortcuts

The on-device batch converter, and it handles any format the phone can read.

  1. Open Shortcuts+
  2. Add Select Photos, and enable Select Multiple
  3. Add Convert Image, set the format to JPEG
  4. Enable Preserve Metadata, or leave it off to strip location data
  5. Add Save to Photo Album

Run it, pick any number of photos, and JPGs appear in your library. Add a Resize Image step before the conversion if you are fighting an attachment limit.

For iPhone photos specifically, the better fix is upstream: SettingsPhotosTransfer to Mac or PCAutomatic converts HEICs to JPEG whenever you move them to a computer. Our HEIC to JPG guide covers that in full.

Android varies by manufacturer, so there are two reliable routes.

Google Photos: open the image, tap Edit, make any adjustment, then Save copy. The saved copy is a JPEG. Clumsy, but it works on every device.

Samsung Gallery: open, Convert to JPG, which appears for HEIF images.

Files by Google: no conversion feature. Share to any editor and save from there.

For a batch on Android, method 1 in the phone’s browser is genuinely the easiest route, because it runs locally and handles a multi-file selection.

8. ImageMagick

The cross-platform answer for anything above a handful of files.

# Install
sudo apt install imagemagick     # Debian/Ubuntu
brew install imagemagick         # macOS
winget install ImageMagick.ImageMagick

# One file, from any supported format
magick input.png -quality 90 output.jpg

# A whole folder, writing JPGs alongside the originals
magick mogrify -format jpg -quality 90 *.png

# Mixed source formats in one pass
magick mogrify -format jpg -quality 90 *.png *.webp *.tiff *.bmp

# Flatten transparency onto white, which you almost always want
magick mogrify -format jpg -quality 90 -background white -alpha remove -alpha off *.png

# Fix sideways phone photos while converting
magick mogrify -format jpg -quality 90 -auto-orient *.heic

# Remove GPS and camera metadata
magick mogrify -format jpg -quality 90 -strip *.png

mogrify writes in place by extension, so -format jpg creates photo.jpg next to photo.png and leaves the original alone. Work on a copy of the folder the first time, until you trust the flags.

9. Google Drive and Office

Useful when the image is already inside a document.

Google Docs and Slides: FileDownloadJPEG exports the current slide or page as an image.

Google Drawings: FileDownloadJPEG, which is the simplest Google route for a single image.

Microsoft Word and PowerPoint: right-click any image → Save as Picture, then choose JPEG. PowerPoint can also export every slide as JPEGs through FileExportChange File Type.

Google Photos on the web: downloading a HEIC gives you a JPEG, because Google converts on export.

Similarly, downloading iPhone photos from iCloud.com rather than over USB gives JPEGs directly. If you only need a few, that is the shortest path on Windows and involves no software.

10. Online Converters

They work and they are free. The file goes to a server you do not control and stays there for however long their policy allows.

That is fine for a stock photo. It is not fine for a passport scan, a signed document, a payslip, product photography under embargo, or pictures of other people — and those make up a large share of what gets converted.

Every other method in this guide keeps the file on your own device.

Choosing the Quality

Most of these tools hide the quality setting. Where you can set it, these are sensible values:

Quality Use for
95–100 Almost never — large files, no visible gain
90 A master copy, or print
85 The general default
75–80 Web images that will be displayed small
Below 70 Visible blocking on skin, sky and gradients

Between 85 and 95 you typically pay 40% more bytes for a difference nobody sees. Our understanding image compression guide explains what the number actually controls.

Two Things That Go Wrong

Transparency turns black. JPEG has no alpha channel. Tools that do not flatten deliberately leave transparent areas black. Use -background white -alpha remove -alpha off in ImageMagick, or accept white from the GUI tools.

Photos come out sideways. Phones store rotation as an EXIF tag rather than rotating the pixels. Some converters honour it, some do not.

magick mogrify -auto-orient *.jpg

Run that once and every downstream tool agrees on which way is up.

Summary

The Ten Methods

# Method Use it when
1 Browser converter Any device, nothing installed or uploaded
2 Windows Photos and Paint One or two files
3 PowerToys Image Resizer The Windows batch answer
4 macOS Finder Quick Actions The macOS batch answer
5 sips Scripted macOS jobs
6 iPhone Shortcuts Batches on the phone
7 Android gallery One file; use the browser for batches
8 ImageMagick Any platform, any volume
9 Google Drive and Office The image is inside a document
10 Online converters Images that are already public

Checklist

  1. file or magick identify confirmed what the source really is
  2. ✅ JPG is genuinely required, rather than assumed
  3. ✅ Transparency was flattened to a chosen colour
  4. -auto-orient was applied, so nothing landed sideways
  5. ✅ Quality is around 85, not left at a tool’s default
  6. ✅ Location metadata was stripped from anything shared publicly
  7. ✅ Private documents never went to an upload service

For one file, use whatever your operating system already has. For a folder, magick mogrify -format jpg -quality 85 * covers almost every source format in a single command.

Related Resources

Format References

Ready to optimize your images?

Sirv automatically optimizes, resizes, and converts your images. Try it free.

Start Free Trial