
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.
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 File → Save as → JPEG 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.
- Install Microsoft PowerToys — free, from Microsoft
- Select any number of images in File Explorer
- Right-click → Resize with Image Resizer
- Click the settings link in the dialog to choose JPEG as the output format and set the quality
- 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.
- Select any number of images in Finder
- Right-click → Quick Actions → Convert Image
- Choose JPEG
- Pick Actual Size, or one of the preset smaller sizes
- 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.
- Open Shortcuts → +
- Add Select Photos, and enable Select Multiple
- Add Convert Image, set the format to JPEG
- Enable Preserve Metadata, or leave it off to strip location data
- 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: Settings → Photos → Transfer to Mac or PC → Automatic converts HEICs to JPEG whenever you move them to a computer. Our HEIC to JPG guide covers that in full.
7. Android Gallery and Files
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: File → Download → JPEG exports the current slide or page as an image.
Google Drawings: File → Download → JPEG, 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 File → Export → Change 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
- ✅
fileormagick identifyconfirmed what the source really is - ✅ JPG is genuinely required, rather than assumed
- ✅ Transparency was flattened to a chosen colour
- ✅
-auto-orientwas applied, so nothing landed sideways - ✅ Quality is around 85, not left at a tool’s default
- ✅ Location metadata was stripped from anything shared publicly
- ✅ 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
Related Guides
PNG to JPG and Back: 9 Ways to Convert Without Wrecking the Image
8 Ways to Convert WebP to PNG or JPG (and Why Sites Serve WebP)
8 Ways to Convert HEIC to JPG (iPhone, Mac, Windows and Batch)
12 Image Converters Compared: Browser, Desktop, CLI and API
JPEG to JPG: There Is Nothing to Convert (and 7 Other Name Traps)
12 Image File Types Explained: When to Use Each