Image format conversion is one of those skills that feels obvious until you need it, and then turns out to involve more decisions than expected. A photo from your phone is HEIC, and the website you want to upload to wants JPG. A logo your designer sent is PSD, and you need PNG with transparency. A screenshot saved as PNG is too large to email, and you wonder whether to convert to JPG or compress in place. Each of these is a small problem with a clear solution, but the clear solution is different in each case.

This guide is the practical, beginner-friendly walkthrough. It explains what each common format is for, which tools handle conversion well, the specific buttons or commands to use, and the mistakes that ruin quality. By the end, you will know which format to use for which job and how to convert between them without surprises.

The Five Formats Beginners Need to Know

Most everyday image work involves five formats. Each does a specific job; using the wrong one for the wrong job is the most common cause of "my image looks bad."

FormatBest forFile sizeTransparencyNotes
JPGPhotographsSmallNoUniversal compatibility
PNGScreenshots, UI, logosMedium to largeYesLossless
GIFAvoid for new contentOften hugeOne-bitUse video or WebP instead
HEICiPhone camera outputSmallYesLimited cross-platform support
SVGLogos, iconsTinyYesResolution-independent
You will encounter two more formats in modern workflows:
  • WebP is a smaller, modern alternative to JPG and PNG, supported in every modern browser.
  • AVIF is even smaller than WebP, also widely supported, and the default for many image CDNs.

For everyday use, JPG, PNG, and SVG cover the vast majority of needs. WebP and AVIF matter when you are publishing to the web at scale.

What Conversion Actually Does

When you convert an image from one format to another, the tool decodes the original file into a pixel buffer (or an intermediate vector representation, for SVG) and re-encodes it in the target format. Whether the conversion preserves quality depends on the formats involved.

Lossless to lossless (PNG to PNG, BMP to PNG, lossless WebP to PNG): exact pixel preservation. Quality is the same.

Lossy to lossy at the same quality (JPG to JPG): preserves the existing artifacts but adds new ones. Avoid unless necessary.

Lossy to lossless (JPG to PNG): preserves whatever quality the JPG had, but the file gets much larger because PNG cannot benefit from the same compression tricks JPG used.

Lossless to lossy (PNG to JPG): introduces compression artifacts. Quality drops, file size shrinks. The usual trade-off for web delivery.

The mental model that prevents most beginner mistakes: each conversion is a translation, not an upgrade. You cannot recover quality that the source format discarded.

"The most common image-quality complaint I hear is from people who converted a JPEG to a PNG expecting the picture to get sharper. PNG cannot reconstruct what JPEG threw away. Format conversion is a transport, not a fix." Ken Rockwell, photography educator

Choosing the Right Tool

Different tools fit different needs. The four good options for beginners:

Photos (macOS) and Preview (macOS). Open the image, choose Export from the File menu, pick the new format, save. Handles JPG, PNG, HEIC, TIFF, PDF.

Photos (Windows 11). Built into Windows. Open, click the menu, choose Save As, pick the new format. Handles JPG, PNG, BMP, TIFF, GIF.

XnConvert (free, cross-platform). Excellent for batch conversion of many files at once. Drag a folder in, pick the output format, click Convert. Handles every common format and many uncommon ones.

ImageMagick (free, command-line). The standard tool for automated image conversion. Slightly more technical but extremely powerful. Single command converts thousands of files.

For most beginners, the operating system tools handle one-off conversions and XnConvert handles batches. ImageMagick is worth learning if you do conversion frequently.

Converting Common Pairs

The conversions you are most likely to need, with the steps that produce the right result.

HEIC to JPG (iPhone photos to universally compatible)

iPhones save photos as HEIC by default. Many websites and tools do not accept HEIC. The conversion to JPG is straightforward.

On iPhone: Settings > Camera > Formats > Most Compatible. New photos will save as JPG. To convert existing HEIC photos, share them via the Files app and select "Save as JPEG" if available, or use a free app like Photo Compress.

On macOS Preview: Open the HEIC file, File > Export, choose JPEG, save.

On Windows: Install the HEIF Image Extensions from the Microsoft Store. Photos can then open HEIC and Save As JPG.

Command line (ImageMagick):

# Single file
magick photo.heic photo.jpg

# Batch
magick mogrify -format jpg -quality 92 *.heic

PNG to JPG (smaller files for web sharing)

PNGs of photographs are wasteful. Converting to JPG dramatically reduces file size.

Visual tools: Photos, Preview, XnConvert, and most image editors handle this with a Save As or Export operation. Choose quality 85 to 90 for typical use.

Command line:

# Single file with mozjpeg-style quality
magick photo.png -quality 85 photo.jpg

# Batch
magick mogrify -format jpg -quality 85 *.png

Important: when converting PNG with transparency to JPG, the transparent areas become white (or the background color you set). JPG does not support transparency. If the transparency matters, do not convert to JPG.

JPG to PNG (preparing for editing)

You convert JPG to PNG when you intend to edit the image and save multiple times. PNG is lossless, so each save preserves the previous version exactly.

Visual tools: Standard Save As workflow.

Command line:

magick photo.jpg photo.png

The resulting PNG will be larger than the JPG. This is normal. The benefit is that further edits will not introduce additional generation loss.

Anything to SVG

You cannot convert a JPG or PNG to a true SVG. SVG is a vector format; raster pixels do not have vector geometry. There are tools that "trace" raster images into approximate SVG (Inkscape's Trace Bitmap, Adobe Illustrator's Image Trace), but the result is an interpretation, not a faithful conversion.

The right approach: get the SVG from the original source. If a designer sent you a logo as PNG, ask for the SVG. If the source was a vector tool (Illustrator, Sketch, Figma), export SVG directly from that tool. Tracing should be a last resort.

Anything to AVIF or WebP (modern web delivery)

These formats produce much smaller files than JPG or PNG. Conversion is straightforward with the right tool.

Visual tools: XnConvert handles both. Photoshop has WebP support. Squoosh (a free Google web app at squoosh.app) is excellent for one-off web optimization.

Command line:

# JPG to WebP
cwebp -q 80 photo.jpg -o photo.webp

# PNG to AVIF
avifenc --speed 6 --qcolor 50 photo.png photo.avif

For the web, the right pattern is to keep the original (JPG or PNG) and add AVIF and WebP variants alongside, served via the picture element. This way every browser gets the smallest format it supports.

Quality Settings That Make Sense

Most conversion tools have a quality slider. The right number depends on the format.

FormatRecommended QualityNotes
JPG80 to 9085 is a near-universal sweet spot
WebP (lossy)75 to 85Slightly lower scale than JPG
AVIF50 to 60Quality scale runs differently
PNGnot applicableLossless, no quality slider
WebP (lossless)not applicableLossless mode
Quality 100 is usually wasteful. The byte cost between 85 and 100 typically doubles the file size for negligible perceptual gain. For most use cases, 85 is the right number for JPG and WebP.
"Above quality 90, JPEG spends bytes preserving information your eye does not register. Below quality 70, the artifacts become visible. The middle is the place to live." Steve Hoffenberg, digital imaging analyst, IDC reports

Batch Conversion: The Tools That Save Hours

Converting one image is fast. Converting hundreds is tedious. Two tools handle batch work well.

XnConvert (graphical):

  1. Drag a folder of images into the input area.
  2. Choose actions (resize, rotate, change format, strip metadata).
  3. Pick the output folder and format.
  4. Click Convert.

XnConvert handles thousands of files and dozens of format pairs. It is free for personal use.

ImageMagick (command line):

# Convert every JPG in a folder to WebP
for f in *.jpg; do
  cwebp -q 82 "$f" -o "${f%.jpg}.webp"
done

# Or with ImageMagick's mogrify (in-place batch)
magick mogrify -format webp -quality 82 *.jpg

# Resize and convert in one operation
magick mogrify \
  -resize 1600x1600\> \
  -quality 85 \
  -format jpg \
  -strip \
  *.png

The 1600x1600\> syntax means "resize only if the image is larger than 1600 pixels in either dimension." This is useful for normalizing image sizes without enlarging smaller images.

For sites running large image inventories, including listing platforms like downundercafe.com or content sites like strangeanimals.info, batch conversion pipelines run automatically as part of the build. The tools above are exactly what those pipelines use.

Avoiding Quality Loss

Five rules prevent the most common quality problems.

Rule 1: Keep the original. Always preserve the unconverted source. Conversion is irreversible for any lossy operation.

Rule 2: Convert directly from the source, not from a previously converted file. Each lossy encode adds artifacts. JPG to PNG to JPG accumulates more loss than JPG kept as JPG.

Rule 3: Use the highest-quality version you have. If the original is a 24-megapixel raw file, do not start conversion from a 1080p JPG copy.

Rule 4: Strip EXIF only after applying orientation. If you strip EXIF without rotating, the image may display sideways. Most tools (ImageMagick's -auto-orient, Pillow's ImageOps.exif_transpose) handle this correctly.

Rule 5: Preserve the ICC color profile. Stripping the profile causes color shifts on color-managed displays. Most modern tools preserve profiles by default; verify when in doubt.

# Safe conversion that preserves quality and applies orientation
magick photo.heic \
  -auto-orient \
  -quality 92 \
  photo.jpg

Privacy: Strip Metadata Before Sharing

Photos taken on modern phones often include GPS coordinates, camera serial numbers, and timestamps in the EXIF metadata. Posting these publicly can leak more information than intended.

To strip metadata while preserving the image:

# ImageMagick: remove all metadata
magick photo.jpg -strip photo-clean.jpg

# Keep ICC profile but strip everything else
magick photo.jpg -strip +profile '!icc,*' photo-clean.jpg

# exiftool dedicated tool
exiftool -all= photo.jpg

Visual tools usually have a "remove metadata" or "strip personal information" checkbox in their export dialogs.

When the Conversion Goes Wrong

Three common failure modes and the fixes.

Image displays sideways. EXIF orientation was stripped without applying rotation. Re-do conversion with auto-orient enabled.

Colors look wrong. ICC profile was stripped or the wrong color space was assumed. Re-do conversion with the original profile preserved.

Image is much smaller (or larger) than expected. Quality setting is too low (or too high), or the format does not match the content type. Try a different quality or different format.

Image has visible bands or blockiness. The conversion happened at a low quality setting, or the source was already heavily compressed. Convert from a higher-quality source if possible.

For deeper guidance on specific format choices, the SVG vs PNG vs JPG guide and the essential guide to choosing the right image format for web on this site cover the trade-offs in detail. The preserving quality in JPEG to PNG conversion guide covers the JPG-to-PNG case specifically. Beginners working through certification or technical content can also find structured publishing patterns at pass4-sure.us.

A Beginner-Friendly Default Workflow

For most casual users, this workflow handles everyday conversion needs.

  1. iPhone photos. Switch the iPhone camera to "Most Compatible" so new photos save as JPG. Convert old HEIC photos with the Files app or XnConvert.
  1. Screenshots. Save as PNG (the default on every OS). If file size matters for sharing, run pngquant or convert to lossy WebP.
  1. Photos for web upload. Resize to 1600 pixels on the long edge, save as JPG quality 85. Most platforms re-compress anyway.
  1. Photos for archival. Keep the original (RAW or HEIC). Add a TIFF or DNG copy for editing if needed. Do not throw away the original.
  1. Logos and icons. Always work from SVG sources. Generate PNG variants only when SVG is not supported by the receiving system.
  1. Sharing publicly. Strip EXIF metadata. Compress to a reasonable quality. Use the format the receiving platform recommends.

This workflow handles maybe ninety percent of beginner conversion tasks correctly. The remaining ten percent involve niche cases (HDR photos, raw camera files, animated content) that benefit from format-specific guides.

A Note on Modern Web Formats

Beginners often hear about WebP and AVIF and wonder whether to use them. The honest answer for casual sharing: probably not. JPG and PNG are universally supported; WebP and AVIF are widely supported but not universal. For email, social media, and one-off sharing, JPG and PNG are still the right choices.

For publishing to a website you control, AVIF and WebP are worth using because they save substantial bandwidth at equivalent quality. Most modern site generators, CDNs, and image-handling plugins automate AVIF and WebP delivery. You upload a JPG; the system serves AVIF, WebP, and JPG variants automatically.

This is the right time to remember that format conversion at scale is solved by automation, not by manual choice. The job for beginners is to know the formats well enough to ship the right source format, then let tools handle the rest.

Frequently Encountered Surprises

Beginners run into the same surprises repeatedly. Naming them in advance prevents most of the friction.

"My PNG is bigger than my JPG." Expected. PNG is lossless; JPG threw away information to be small. For photographs, JPG will almost always be smaller.

"My HEIC will not open on Windows." Install the HEIF Image Extensions from the Microsoft Store, or convert to JPG on the iPhone before transferring.

"My converted image rotated unexpectedly." EXIF orientation was stripped without applying rotation. Reconvert with auto-orient enabled.

"My logo looks blurry on a high-DPI screen." It is a raster image at insufficient resolution. Replace with SVG or a higher-resolution PNG.

"The website rejected my upload." Often a format or size mismatch. Most platforms accept JPG and PNG; few accept HEIC or AVIF directly.

"Editing a JPG keeps making it look worse." Each save adds compression artifacts. Convert to PNG, edit there, save back to JPG only at the end.

Each surprise has a clear, mechanical fix. The general lesson is that format conversion has rules, the rules are knowable, and following them produces predictable results.

Closing Note for Beginners

The skills covered in this guide cover ninety percent of everyday image format work. The remaining ten percent involves specialized cases (raw camera files, color-managed print, archival workflows) that benefit from deeper study. For most casual users, knowing JPG, PNG, and SVG well; using the right tool for the job; and preserving the originals is enough to handle every common scenario without surprises. The deeper material is available when you need it; the basics described here are usually sufficient.

References

  1. ITU-T Recommendation T.81, JPEG specification, 1992. https://www.itu.int/rec/T-REC-T.81
  2. ISO/IEC 15948:2004, Portable Network Graphics (PNG). https://www.iso.org/standard/29581.html
  3. W3C, Scalable Vector Graphics (SVG) 2 Recommendation. https://www.w3.org/TR/SVG2/
  4. Apple Developer Documentation, HEIF and HEIC capture formats. https://developer.apple.com/documentation/imageio/heif_and_heic_image_formats
  5. ImageMagick Studio, ImageMagick Documentation. https://imagemagick.org/script/command-line-options.php
  6. Google Developers, WebP encoder reference (cwebp). https://developers.google.com/speed/webp/docs/cwebp
  7. AOMedia, AV1 Image File Format (AVIF) 1.1.0 Specification. https://aomediacodec.github.io/av1-avif/
  8. CIPA DC-008-2024, Exchangeable image file format for digital still cameras: Exif Version 3.0. https://www.cipa.jp/std/documents/e/DC-X008-Translation-2024-E.pdf