75%

Higher means better looking but larger files. 70–85 is a great default for photos. Lossless keeps every pixel of the decoded JPG exactly and ignores the quality slider. The file is usually larger than the JPG itself. Higher effort takes longer but produces smaller files.

JPG to JXL Converter

Select JPG files — or a whole folder — and convert them to JPEG XL 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 JPEG XL Converter Works — Complete Guide

Everything you need to know about converting JPG photos to JPEG XL (.jxl) with Sakarto: what the two formats are, when converting makes sense, how lossless and lossy modes differ, 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 JXL files.

🔍 What This Tool Does

Sakarto converts JPG (JPEG) photos into JPEG XL inside your browser. Add a few files or a whole folder, choose lossless or a lossy quality, and get back .jxl 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.

Smaller Photos

Lossy JPEG XL photos are usually noticeably smaller than JPG at similar quality, so you save storage and bandwidth.

Lossless or Lossy

Pick a 1–100 quality for the smallest files, or tick Lossless to keep every decoded pixel. A setting for encoding effort squeezes out even more.

Photos Come Out Upright

Photos from phones and cameras are turned the right way up using their rotation data, just like in your browser.

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 JPEG XL — What Are These Formats?

Both formats are made for photos, but JPEG XL is the much newer design and also offers a lossless mode. Understanding the difference helps you decide whether a conversion is worth it today.

📷 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 JPEG XL?

JPEG XL (.jxl) is a modern image format from the JPEG committee, standardised in 2022 as ISO/IEC 18181. It was designed to replace JPG, PNG and GIF with one format: excellent compression, both lossless and lossy modes, transparency, animation, HDR and wide colour.

  • Lossy mode for photographs — usually smaller than JPG at similar quality
  • Lossless mode keeps every pixel exactly, but is much larger than a lossy photo
  • Full alpha transparency in both modes
  • Supports high bit depth, HDR and wide colour spaces (Sakarto writes 8-bit images)
  • Can load progressively, so large images appear gradually
  • Still new: only some browsers can display it, and many apps, editors and websites can't open it yet
JPEG XL is a format of the future — check support before you publish it. Safari has supported JPEG XL since version 17, and recent versions of Chrome and Firefox are adding it, but many apps, upload forms and older browsers still cannot open .jxl files. Keep your JPG files as masters, and use JPG to WebP or JPG to AVIF where you need smaller photos that more browsers can show.

⚖️ Side-by-Side Comparison

⚖️ Side-by-Side Comparison
FeatureJPGJPEG XL
CompressionLossy onlyLossless or lossy — your choice
File size for photosSmallUsually smaller than a JPG at similar quality (lossy mode)
Quality after re-savingGets worse each timeLossy mode gets worse each time; lossless does not
TransparencyNoneYes, full alpha channel
Colour depth8 bits per channelUp to 32 bits (Sakarto writes 8-bit)
Encoding speedVery fastDepends on the effort setting — slower at high effort
Camera data (EXIF, GPS)Stored in the fileNot copied by this converter
Browser supportUniversalSafari 17+, and newer versions of Chrome and Firefox
App and printer supportUniversalGrowing, but still limited
File extensions.jpg, .jpeg.jxl

🎯 When Should You Convert JPG to JPEG XL?

✅ Good reasons to convert
  • Archiving or storing large photo libraries in less space
  • Photos you want in a lossless format after decoding, so they never lose quality again (Lossless mode)
  • Sharing photos with people who use Safari, or other viewers that support JPEG XL
  • Experimenting with the new format, or testing how it performs on your own photos
  • A site, app or workflow asks for JPEG XL files
⚠️ Think twice if…
  • You need the photos to open everywhere — many apps, email clients, forms and older browsers can't show .jxl files
  • You publish on a website and want every visitor to see the photo — WebP or AVIF are better supported today
  • You need to open the photos in editors, print shops or tools that don't support JPEG XL
  • You need to keep the camera data, such as location or lens details — it isn't copied to the JXL
  • You plan to edit the photo repeatedly in lossy mode — keep the JPG as your master
Convert copies, never masters. Sakarto never modifies your JPG files — it creates new JXL files. Keep the originals as your master copies.

🧠 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 JPEG XL encoder (a WebAssembly build of libjxl, about 2 MB) is downloaded and started in background workers. Your browser keeps it afterwards. It runs on your device — your photos are never sent to it.

  3. Decode the photo

    Your browser's own JPEG decoder turns each file into pixels. Photos are turned upright using their camera rotation data, and if the photo has a colour profile the browser converts the colours to sRGB.

  4. Encode as JPEG XL in parallel

    The pixels are compressed losslessly or at your chosen quality, with the encoding effort you selected. The work happens in 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 JXL 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). If your browser can't display JPEG XL, previews are created by decoding the file locally.

What do quality and effort change? In lossy mode, quality trades detail for size: lower quality means smaller files but visible softening, made worse by the JPG's own compression. Encoding effort doesn't change how the photo looks much — higher effort simply searches harder for a smaller file and takes longer. In Lossless mode the quality slider is ignored and nothing more is lost, but the file is usually larger than the JPG.

🎚️ Choosing a JPEG XL Quality

There is no single best setting, but these ranges are a reliable starting point for photos. Lossless mode ignores the slider.

🎚️ Choosing a JPEG XL Quality
QualityBest forWhat to expect
Lossless (checkbox)Photos you must keep pixel-exact after decodingIdentical pixels to the decoded JPG, but usually larger than the JPG itself
90–100Photos you want to keep nearly perfectVery close to the JPG, with larger files
70–89High-quality photos (75 is the default)Looks near-identical for most photos, usually smaller than the JPG
45–69Web previews, thumbnails, social mediaNoticeably smaller; slight softening on close inspection
Below 45Rarely recommendedVisible blur and artifacts, 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 JPEG XL tab
  • Best for a few photos: drop them in, download the ZIP
  • You can still change the quality, Lossless or effort setting 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 JPEG XL

Step 1

Choose Your Settings

Tick Lossless to keep every decoded pixel, or set the JPEG XL quality. Choose an encoding effort and decide whether you want Queue Mode on or off.

Not sure? Leave the quality at 75 and the effort on 7. Lossless keeps every pixel, but the file is usually larger than the JPG.
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 JXL Files

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

📦 Download ZIP All JXL 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 JXL
⬇️ Card button Download a single JXL 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 sliderJPEG XL quality from 1 (smallest) to 100 (best)
Lossless checkboxKeep every pixel exactly; the quality slider is ignored
Encoding effortHigher effort takes longer but gives smaller files
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 JXL files into one ZIP file
📥 Download ListSave a text file listing each JPG and the JXL 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

Lossy at 70–85 Saves Space

A JPG converted to JPEG XL at quality 70–85 is usually smaller than the original with little visible difference.

Go Higher for Second Passes

Converting a JPG to lossy JPEG XL compresses the picture again. If the photo matters, use quality 80–90 so the second pass adds as little loss as possible.

Lossless Isn't Smaller

Lossless JPEG XL keeps every pixel of the decoded JPG, which is usually larger than the JPG itself. Use it only when you need pixel-exact copies.

Be Patient With High Effort

Effort 9 can take a long time on large photos. For big batches, stay on 5–7 and compare the result before going higher.

Photos Come Out Upright

Phone and camera photos are turned the right way up using their rotation data, so the JXL 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 JXL, 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, tick Lossless or change the effort 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 JXL. Keep the original if you need them.

Compare Before You Download

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

⚠️ Known Limitations

Results live in memory only.

Converted JXL 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 lossy JPEG XL compresses it again, so extra softening is possible, especially at low quality. Use a higher quality, or Lossless, if that matters.

Lossless files are large.

Lossless JPEG XL stores every pixel of the decoded photo, so it is usually larger than the JPG. The Converted JPEG XL tab shows the size change for every file.

High effort is slow.

A large image at effort 9 can take a long time. Choose a lower effort to finish sooner; the Stop button cancels the remaining files.

Large batches and big images use a lot of memory.

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

Very large images may fail.

Photos over 40 megapixels and files over 100 MB are not converted and are reported as failed. Rare kinds of JPEG, such as arithmetic-coded or lossless JPEGs, can't be opened by browsers and are also reported.

The encoder is downloaded once.

The first conversion downloads about 2 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 and camera details from the JPG are not copied to the JXL. Colour profiles are applied by the browser, which converts to sRGB, so photos in wide-gamut profiles may look slightly different.

HEIC photos aren't JPG.

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

Not every app and browser can open JXL.

Safari 17+ and newer versions of Chrome and Firefox can display JPEG XL. Elsewhere, Sakarto still shows previews by decoding the files locally, but other programs may not open them.

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 JXL files and never overwrites or deletes your JPGs.
Location data stays behind. Photos can contain GPS coordinates and camera details. The JXL 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, Lossless, effort 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 JPEG XL 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 JPEG XL be smaller than my JPG?
In lossy mode, usually — at similar visual quality a JPEG XL photo is typically noticeably smaller than a JPG. It is not guaranteed: a JPG that is already heavily compressed may not shrink, and Lossless mode is normally larger than the JPG. The Converted JPEG XL tab shows the size change for every file.
Does converting JPG to JPEG XL lose quality?
In lossy mode the photo is compressed a second time, so there can be a small extra loss — barely visible at quality 75–90 for most photos. In Lossless mode the JXL holds every pixel of the decoded JPG exactly, so nothing more is lost, but the file is larger.
What is JPEG XL?
JPEG XL (.jxl) is a modern image format from the JPEG committee. It supports lossless and lossy compression, transparency, animation and HDR, and often produces smaller files than JPG, PNG or WebP. Browser and app support is still growing.
Does JPEG XL support transparency?
Yes, but JPG photos have no transparency, so your JXL files will be fully opaque. JPEG XL's alpha channel only matters for images that already have transparency, such as PNG files.
What is the difference between lossy and lossless?
Lossy mode discards small details to make files smaller; you control it with the quality slider. Lossless mode keeps every pixel of the decoded JPG exactly, so the files are larger than lossy ones and usually larger than the JPG. Use lossy for photos you want to store or publish, and lossless only when you need pixel-exact copies.
Which quality setting should I use?
For photographs, 70–85 gives results that look very close to the JPG at a smaller size, and 75 is the default. Go to 90 or above when the photo matters, because the JPG was already compressed once. Try a few files first and compare the preview.
What does the encoding effort do?
Effort (1–9) controls how hard the encoder searches for a smaller file. Higher effort takes longer but gives smaller files at the same quality; lower effort finishes sooner with somewhat larger files. The default, 7, is a good balance. Effort 9 can be very slow on large images.
Is the lossless mode really lossless?
Yes, for the decoded photo. In Lossless mode the JPEG XL pixels are identical to the 8-bit pixels your browser decodes from the JPG. The JPG itself was already lossy, so the JXL can't be better than the JPG you started with. Metadata isn't copied.
Why can't my browser or app open the JXL file?
JPEG XL is still new. Safari has supported it since version 17, and newer versions of Chrome and Firefox are adding support, but many programs, websites and upload forms can't open it yet. Sakarto shows previews even in browsers without support by decoding the file locally. If you need wide compatibility, use JPG to WebP or JPG to JPG instead.
Why is my JXL larger than the original JPG?
Some JPG files are already very efficiently compressed, and a high-quality JXL can end up the same size or larger. Lossless JXL is normally larger than a JPG. Try a lower quality, or keep the JPG. The Converted JPEG XL tab shows the size change for every file so you can spot this.
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 JPEG XL. 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 JXL is produced from the decoded pixels, so EXIF data, GPS location and camera details aren't copied. Photos are turned upright using their rotation data before saving, so they look the same as in your browser.
Are there file size or image size limits?
Files over 100 MB are skipped, as are photos over 40 megapixels. The encoder 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. 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 I change the settings and convert again without adding the files again?
Yes. Your JPG files stay loaded. Change the quality, tick/untick Lossless or change the effort, 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 JXL 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 JXL?
Click Download List in the Converted JPEG XL tab to save a text file with each original path, the new file name, dimensions, sizes, quality and effort. Show as List displays the same "from → to" list right on the page.