60%

Higher means better looking but larger files. 50–70 is a great default for photos. Slower speeds take more time but produce smaller files at the same quality.

JPG to AVIF Converter

Select JPG files — or a whole folder — and convert them to AVIF right in your browser. Nothing is uploaded.

Or drag & drop JPG files or folders anywhere on this page. Only JPG files are accepted.

Ready
0 files

🚀 How the JPG to AVIF Converter Works — Complete Guide

Everything you need to know about converting JPG photos to AVIF with Sakarto: what the two formats are, when converting makes sense, how quality and encoding speed affect the result, and how to use Queue Mode. Scroll down for step-by-step instructions, tips, and answers to common questions.

100% Private — Your Images Never Leave Your Computer Everything runs inside your browser. No uploads, no accounts. Your original JPG files are only read, never changed — the converter creates new AVIF files.

🔍 What This Tool Does

Sakarto converts JPG (JPEG) photos into AVIF inside your browser. Add a few files or a whole folder, pick a quality, and get back AVIF copies you can download one by one, as a single ZIP, or save straight to a folder. Photos from phones and cameras are turned the right way up. Encoding is done by a WebAssembly encoder that runs in background Web Workers, so several photos are processed at the same time and the page stays responsive. Only genuine JPG files are accepted — every file is checked by its internal signature, not just its extension.

Tiny Photos

AVIF is one of the most efficient image formats available. Photos are often around half the size of the JPG they came from at similar quality.

Quality and Speed Control

Pick a 1–100 quality and an encoding speed — slower speeds squeeze out even smaller files.

Photos Come Out Upright

Photos from phones and cameras are turned the right way up using their rotation data.

Queue or Instant Mode

Hand-pick which JPG files to convert with Queue Mode, or switch it off and convert everything the moment it is loaded.

📚 JPG vs AVIF — What Are These Formats?

Both formats are made for photos and both compress with some loss, but AVIF is far newer and much more efficient. Understanding the difference helps you decide whether a conversion is worth it.

📷 What is JPG?

JPG (also written JPEG, after the Joint Photographic Experts Group) became a standard in 1992. It makes photos small by throwing away detail the eye barely notices, and it is the most common photo format in the world.

  • Lossy compression — smaller files, but some detail is gone for good
  • Every re-save compresses again and adds more loss
  • No transparency — every pixel is solid
  • 8 bits per colour channel
  • Stores camera data such as EXIF, rotation and sometimes GPS location
  • Opens in practically every browser, app, printer and device
🚀 What is AVIF?

AVIF (AV1 Image File Format) is a modern image format released in 2019 by the Alliance for Open Media. It is built on the AV1 video codec and was designed for the web: much better compression than JPG and WebP, plus transparency, wide colour and optional animation.

  • Typically far smaller than JPG or WebP at the same visual quality
  • Full alpha transparency, even with strong compression
  • Supports high bit depth, HDR and wide colour spaces (Sakarto writes 8-bit images)
  • Lossy compression with a quality setting; excellent for photographs and gradients
  • Encoding is slow and memory-hungry compared with JPG and WebP
  • Supported by current browsers, but fewer older apps, editors and printers can open it
AVIF is for delivering photos, JPG is for sharing them everywhere. AVIF shines when photos are shown to people in a browser. For printing, e-mailing and older software, JPG is still the safest choice — so keep your JPG files as masters and publish the AVIF copies. Converting a JPG to AVIF compresses the picture a second time, so use a fairly high quality if the photo matters.

⚖️ Side-by-Side Comparison

⚖️ Side-by-Side Comparison
FeatureJPGAVIF
CompressionLossy, with an adjustable qualityLossy, with an adjustable quality
File size for photosSmallOften around half the size of a JPG at similar quality
Quality after re-savingGets worse each timeGets worse each time
TransparencyNoneYes, full alpha channel
Smooth gradientsCan show blocky bandingMuch smoother
Colour depth8 bits per channel8, 10 or 12 bits (Sakarto writes 8-bit)
Encoding speedVery fastSlow — seconds per large photo
Camera data (EXIF, GPS)Stored in the fileNot copied by this converter
Browser supportUniversalCurrent Chrome, Edge, Firefox and Safari
App and printer supportUniversalGrowing, but many older tools can't open it
File extensions.jpg, .jpeg.avif

🎯 When Should You Convert JPG to AVIF?

✅ Good reasons to convert
  • Websites and web apps — the smallest photos mean the fastest pages
  • Photo galleries, blogs and shops where many large JPGs slow the page down
  • Reducing storage or bandwidth for big photo libraries
  • Photos with smooth gradients, such as skies, where AVIF avoids the blocky banding of JPG
  • A site, CMS or form asks for AVIF files
⚠️ Think twice if…
  • You need to open the photos in older editors, print shops or apps that don't support AVIF
  • You plan to edit the photo repeatedly — keep the JPG as your master
  • The destination may reject .avif files (some email clients, forms and marketplaces)
  • You need to keep the camera data, such as location or lens details — it isn't copied to the AVIF
  • You have hundreds of huge photos and little time — AVIF encoding is the slowest of the common formats
Convert copies, never masters. Sakarto never modifies your JPG files — it creates new AVIF files. Keep the originals as your master copies and use the AVIF files for publishing.

🧠 How the Conversion Works

Here is what happens to every file, step by step — all of it on your own device:

  1. Validate the JPG

    The first bytes of each file are checked against the JPG signature, and the frame header is read to get the dimensions and the camera rotation — without decoding the whole image. Files that aren't real JPGs are skipped.

  2. Load the encoder

    The first time you add files, the AVIF encoder (about 7 MB of WebAssembly) is downloaded and prepared in the background. Your browser keeps it afterwards, so the next visit starts faster. It runs on your device — your photos are never sent to it.

  3. Read the JPG

    The JPG bytes are handed straight to the encoder, which decodes them itself and turns photos upright using their camera rotation data.

  4. Encode as AVIF in parallel

    The photo is compressed with the AV1 AOM encoder at the quality and speed you selected. The work happens inside Web Workers, so the page stays responsive, and on computers with several cores a few files are encoded at the same time. Phones and tablets process one file at a time to save memory.

  5. Deliver the result

    Each AVIF file is held in memory. You can download them individually, bundle them into a ZIP that is built locally in your browser, or write them straight into a folder (Chrome and Edge).

Why do the quality and speed settings matter? AVIF trades detail for size. Lower quality means smaller files but visible softening; higher quality keeps more detail but saves less space. Because the JPG was already compressed once, very low settings can smear fine detail. Encoding speed does not change how the photo looks much — slower speeds simply search harder for a smaller file.

🎚️ Choosing an AVIF Quality

AVIF quality numbers are not the same as JPG numbers — AVIF looks good at much lower values. These ranges are a reliable starting point for photos.

🎚️ Choosing an AVIF Quality
QualityBest forWhat to expect
90–100Photos you want to keep nearly perfectVery close to the JPG, but the files can be larger than expected
70–89High-quality photos, product shotsLooks near-identical for almost all photos at a small size
45–69Photos for websites and apps (60 is the default)The sweet spot — usually smaller than the JPG with little visible difference
25–44Thumbnails, previews, social mediaNoticeably smaller; slight softening on close inspection
Below 25Rarely recommendedVisible blur and smearing, made worse by the JPG's own compression

🔁 Queue Mode vs. Instant Mode

The Queue Mode checkbox in the toolbar decides what happens when you click Convert, and whether files are converted as soon as they are loaded.

📋 Queue Mode ON (default)
  • Loaded JPG files are only listed — nothing is converted yet
  • Select the files you want and click Convert to stage them
  • Review the Convert Queue tab and remove anything you don't want
  • Click Convert All Files to process the whole queue at once
  • Best when a folder contains photos you only want to convert selectively
⚡ Queue Mode OFF
  • Every JPG is converted automatically the moment it is loaded
  • Clicking Convert on selected files converts them immediately
  • Results appear straight away in the Converted AVIF tab
  • Best for a few small photos: drop them in, download the ZIP
  • You can still change the quality or speed and re-convert files
Your Queue Mode choice is remembered on this device, so the page works the way you like the next time you visit.

📋 Step‑by‑Step: How to Convert JPG to AVIF

Step 1

Choose Your Settings

Set the AVIF quality and the encoding speed. Decide whether you want Queue Mode on or off.

Not sure? Leave the quality at 60 and the speed on Balanced. Photos you want to keep nearly perfect? Try 75–85. For big batches, a faster speed finishes sooner.
Step 2

Add JPG Files

Click 🖼️ Select JPG Files to choose photos, or 📁 Select Folder to scan a whole folder including subfolders. You can also drag and drop files or folders onto the page. Anything that isn't a real JPG is skipped, and you are told how many were skipped.

Step 3

Review the Files

Every JPG appears as a card with its dimensions and size. Photos from phones and cameras are shown upright, and their dimensions are given the right way round.

  • Click a card to select it (blue border)
  • Click & drag on empty space to box-select several cards
  • Click the 🔍 icon to preview full size
  • Right-click a card for the context menu
  • Ctrl+A selects everything, Escape clears the selection
  • Ctrl+Click (Cmd+Click on Mac) to add a card to the compare list (purple border)
Step 4

Convert

Select the files you want and click 🔁 Convert. With Queue Mode on, the files are staged in the Convert Queue. With Queue Mode off, they are converted immediately.

Step 5

Review the Queue (Queue Mode)

Open the Convert Queue tab in the sidebar. Remove any file with the ✕ button, then click Convert All Files. A progress bar shows how far along the conversion is, and you can stop it at any time.

Step 6

Compare Before and After

Ctrl+Click (Cmd+Click on Mac) two or more cards — original JPGs in the JPG Files tab, converted files in the Converted tab, or a mix of both — then click ⚖️ Compare in the toolbar. A modal shows each file with its dimensions, size and details, plus how much the size changed. You can also open a converted file's preview and click Compare with Original.

⚖️ Compare View the selected files side by side
Ctrl + Click Add or remove a card from the compare list
Compare with Original Open the original and its converted file together
Not happy with the result? Change the settings and press Convert again — your files stay loaded, so you don't need to add them again.
Step 7

Download Your AVIF Files

Finished files appear in the Converted AVIF tab with their new size and how much smaller (or larger) they are. Then pick how to get them:

📦 Download ZIP All AVIF files in one archive, folder structure kept
⬇️ Download All One download per file
📁 Save to Folder Write straight to a folder (Chrome / Edge)
📥 Download List A text file showing which JPG became which AVIF
⬇️ Card button Download a single AVIF file
Converted files exist only in your browser's memory until you download them. Download before closing or reloading the tab.

🏛️ Quick Reference — Buttons & Controls

🏛️ Quick Reference — Buttons & Controls
Button / ActionWhat it does
🔄 New SessionReload the page and start from scratch
➕ Add FilesAdd more JPG files to the current session
☑️ Select AllSelect every JPG file in the list
✕ Deselect AllClear the current selection
🔁 Convert (N)Queue the selected files, or convert them now if Queue Mode is off
⚖️ Compare (N)Open the compare modal for Ctrl+clicked cards. Needs 2 or more.
Queue Mode checkboxOn: stage files first. Off: convert immediately.
Quality sliderAVIF quality from 1 (smallest) to 100 (best)
Encoding speedSlower speeds give smaller files but take longer
Click cardSelect / deselect the file
Ctrl + Click cardAdd / remove the card from the compare list (purple border)
Click & drag (empty area)Box-select several cards at once
Right-click cardContext menu: Copy Name / Preview / Compare / Convert
🔍 hover iconOpen a full-size preview with details
Convert All FilesConvert everything in the Convert Queue
📦 Download ZIPBundle all converted AVIF files into one ZIP file
📥 Download ListSave a text file listing each JPG and the AVIF it became, with sizes
Show as ListShow the same "from → to" list on the page
Ctrl+A / EscapeSelect all files / clear the selection

⭐ What Users Say

Based on 4 reviews (demo)

"This is a demo review. The real reviews will be shown here."

"This is a demo review with a longer text, so you can check how a card looks with more content. The real reviews will be shown here."

"Demo review — real reviews will be here."

"This is a demo review. Once you have real users, their words and names replace this card."

💡 Tips for Best Results

Great for the Web

AVIF photos are usually the smallest you can serve. Converting the photos on your site is one of the biggest page-speed wins.

Photos: 50–70 Is Plenty

A JPG converted to AVIF at quality 50–70 is usually smaller than the original with little visible difference.

Go Higher for Second Passes

Converting a JPG to AVIF compresses the picture again. If the photo matters, use quality 70–85 so the second pass adds as little loss as possible.

Be Patient With Big Photos

AVIF encoding is slow, especially at the slowest speed. For large batches, choose a faster speed and compare the result.

Photos Come Out Upright

Phone and camera photos are turned the right way up using their rotation data, so the AVIF looks like the photo in your browser.

Use Queue Mode for Big Folders

Scanning a folder with many photos? Turn on Queue Mode and convert only the ones you need.

ZIP Beats Many Downloads

Browsers may block or prompt for many simultaneous downloads. Download ZIP gives you everything in one go.

Keep the Download List

Use Download List to save a text file showing which JPG became which AVIF, with the size of each.

Test on a Few Files

Convert two or three photos first, compare the preview and size, and adjust the quality before running a large batch.

Change Settings and Convert Again

Not happy with the result? Change the quality or speed and press Convert again — your files stay loaded, no need to add them again.

Keep the JPG If You Need the Location

GPS location and camera details stored in the JPG are not copied to the AVIF. Keep the original if you need them.

Compare Before You Download

Use Compare to look at the JPG and the AVIF side by side, with the exact size difference, before you download a whole batch.

⚠️ Known Limitations

Results live in memory only.

Converted AVIF files are not saved anywhere until you download them. Reloading or closing the tab discards them.

A second lossy pass.

A JPG is already compressed. Converting it to AVIF compresses it again, so extra softening is possible, especially at low quality. Use a higher quality if that matters.

AVIF encoding is slow.

A large photo can take several seconds, and a big batch can take minutes. Choose a faster speed to finish sooner; the Stop button cancels the remaining files.

Large batches and big images use a lot of memory.

Each encoder keeps its own memory. Sakarto limits the number of parallel encoders (one on phones and tablets), but very large images can still exhaust a device's memory.

Very large images may fail.

Photos over 64 megapixels or 16,383 pixels per side, and files over 100 MB, are not converted and are reported as failed. Rare kinds of JPEG may not open in the encoder and are also reported.

The encoder is downloaded once.

The first conversion downloads about 7 MB of WebAssembly. Browsers cache it afterwards, but you need to be online the first time.

Camera data isn't carried over.

EXIF, GPS location, camera details and embedded colour profiles from the JPG are not copied to the AVIF file.

HEIC photos aren't JPG.

Photos from some phones are saved as HEIC. This converter only accepts JPG files, so those are skipped.

Older browsers can't show AVIF.

You can convert in any browser that supports WebAssembly, but previews need AVIF support: Chrome 85+, Edge 121+, Firefox 93+ and Safari 16.4+. In older browsers the files can still be downloaded.

Saving to a folder needs Chrome or Edge.

The File System Access API is only available in Chromium-based desktop browsers. Everywhere else, use Download ZIP or the per-file download buttons.

🔒 Privacy & Security

Nothing is uploaded. Open DevTools → Network and watch: converting files makes no outbound requests with your photos. The only download is the encoder itself, the first time. Encoding and ZIP creation all happen on your device.
Your originals are never changed. Files are only read. The converter always creates new AVIF files and never overwrites or deletes your JPGs.
Location data stays behind. Photos can contain GPS coordinates and camera details. The AVIF created here has none of them, so it's safer to share — but keep the JPG if you need that information.
No accounts needed. The only things stored in your browser are your preferences (quality, speed and Queue Mode). File names and images are never saved.
Purely static — no backend. The page is HTML, CSS and JavaScript. There is no server, database or API that receives your images.

❓ Frequently Asked Questions

Are my JPG files uploaded anywhere?
No. All conversion happens locally in your browser. The AVIF encoder is a WebAssembly module that is downloaded once and then runs on your device, so your photos never leave it. You can verify this in your browser's DevTools → Network tab.
Will AVIF be smaller than my JPG?
Usually, yes — AVIF photos are often around half the size of a JPG at similar visual quality. It is not guaranteed: a JPG that is already heavily compressed, or a very high AVIF quality, can give a similar or larger file. The Converted AVIF tab shows the size change for every file.
Does converting JPG to AVIF lose quality?
Yes, a little. The photo is compressed a second time, so there can be a small extra loss — barely visible at quality 60–80 for most photos. Use a higher quality if the photo matters, and always keep your original JPG.
What is AVIF?
AVIF is a modern image format based on the AV1 video codec. It produces much smaller files than JPG or WebP for photographs, supports transparency and HDR, and is supported by current browsers.
Does AVIF support transparency?
Yes, but JPG photos have no transparency, so your AVIF files will be fully opaque. AVIF's alpha channel only matters for images that already have transparency, such as PNG files.
Which quality setting should I use?
For photographs, 50–70 gives results that look very close to the original at a fraction of the size, and 60 is the default. Go to 80 or above only when you need near-perfect detail. Try a few files first and compare the preview.
What does the encoding speed do?
The speed controls how hard the encoder searches for a smaller file. Slower speeds (2, 4) take longer but give smaller files at the same quality; faster speeds (8, 10) finish sooner with somewhat larger files. The default, 6, is a good balance.
Why is it slow?
AVIF compression is far more complex than JPG or WebP, so every image takes longer to encode. Sakarto runs the encoder in background Web Workers and processes several files in parallel on computers with multiple cores, but large images still take a few seconds each. A faster speed setting helps.
Why is my AVIF larger than the original JPG?
Some JPG files are already very efficiently compressed, and a high-quality AVIF can end up the same size or larger. Try a lower quality, or keep the JPG. The Converted AVIF tab shows the size change for every file so you can spot this.
Can I get my original JPG back from the AVIF?
Not exactly. Converting the AVIF back to JPG compresses the photo again. Always keep your original JPG files — Sakarto never modifies them.
What is the difference between Queue Mode and converting directly?
With Queue Mode on, loaded files are only listed. You select the ones you want, stage them in the Convert Queue, review, and convert them together. With Queue Mode off, every JPG is converted as soon as it is loaded, and the Convert button converts the selection immediately.
Why can't I add PNG, WebP, HEIC or other image types?
This converter is built specifically for JPG to AVIF. Files are verified against the JPG file signature, so a different image that was only renamed to .jpg is skipped. Photos saved as HEIC by some phones aren't JPG either. Converters for other formats are available from the sidebar.
Which file extensions are accepted?
.jpg, .jpeg, .jpe and .jfif — as long as the file really is a JPG inside.
Is the camera data (EXIF, GPS) kept?
No. The AVIF is produced from the decoded pixels, so EXIF data, GPS location, camera details and embedded colour profiles aren't copied. Photos are turned upright using their rotation data before saving.
Are there file size or image size limits?
Files over 100 MB are skipped, as are photos over 64 megapixels or 16,383 pixels per side. AVIF encoding needs a lot of memory, so on phones and tablets very large photos may fail. Failed files are reported after the conversion.
My browser blocks or asks about multiple downloads. What can I do?
Browsers often limit many automatic downloads. Use Download ZIP to get all files in a single download, or Save to Folder in Chrome or Edge to write them directly to a folder.
Does this work on iPhone, Android and Safari?
Yes. The encoder is WebAssembly, so it runs in any current browser, including Safari and browsers on iPhone, iPad and Android — unlike WebP encoding, which depends on the browser. Phones and tablets convert one file at a time and may be slow with large images. Folder selection and Save to Folder require a Chromium-based desktop browser such as Chrome or Edge.
Can everything open AVIF files?
All current browsers display AVIF, and many current image viewers and editors open it. Some older apps, printers, email clients and upload forms don't accept .avif files. If you need the widest compatibility, keep the JPG.
Can I change the settings and convert again without adding the files again?
Yes. Your JPG files stay loaded. Change the quality or speed, then press Convert again. If nothing is selected, Convert re-converts the files you already converted; otherwise it converts the selection. The new results replace the old ones.
How do I compare the original and the AVIF file?
Ctrl+Click (Cmd+Click on Mac) the original card and its converted card, then click ⚖️ Compare in the toolbar. Or open a converted file's preview and click Compare with Original. The modal shows both images with their sizes and the size difference.
How do I know which JPG became which AVIF?
Click Download List in the Converted AVIF tab to save a text file with each original path, the new file name, dimensions, sizes, quality and speed. Show as List displays the same "from → to" list right on the page.