Deep Dive

Lossless JPEG to JXL: Save 20% of Space Honestly

Picture this: your photo folder shrinks by about a fifth — roughly 20% smaller — and not a single shot loses one pixel of quality. It sounds like magic, but it's a real and the most underrated ability of JPEG XL. Let's unpack how the format honestly shrinks old JPEGs, why it's reversible, and who it helps.

Dozens of cameras on a dark background — a symbol of the huge photo archives you can shrink
The more shots you have, the more noticeable the savings from lossless recompression. Photo: Pexels

The problem with old JPEGs

Over thirty-plus years, humanity has piled up an astronomical number of photos in the JPEG format. They sit on our phones, in clouds, on hard drives and on website servers. And all this treasure shares one flaw: JPEG doesn't compress very efficiently by modern standards. The format was born in 1992, and data-packing algorithms have come a long way since.

The fix seems obvious — re-compress everything into a newer format. But there's a trap: a normal JPEG-to-JPEG conversion (or to any other "lossy" format) damages the picture anew every time, adding artifacts. And we don't want to lose quality on photos we care about. This is exactly where JPEG XL's unique trick steps in.

In short

JPEG XL can pack an old JPEG about 20% more compactly without touching the image itself. The quality stays exactly the same, and from the resulting file you can recover an exact copy of the original at any time.

What lossless recompression is

The technical term is lossless JPEG recompression. The point is that JPEG XL does not re-compress the picture from scratch. It takes the already-compressed data inside the JPEG and repacks it in a smarter way — as if you rearranged the items in a suitcase more tightly without throwing anything out.

The result is a .jxl file that weighs on average about 20% less than the source JPEG but contains exactly the same image — down to the last pixel. No new artifacts, no smearing. This is the very trick we mentioned in "What Is JPEG XL" — one that neither AVIF nor WebP has.

A photographer holds a camera toward the viewer — every shot can be stored smaller without loss
The shot stays unchanged — only how tightly its data is packed changes. Photo: Pexels

How it works inside

Without heavy math, the idea goes like this. Any JPEG already stores the image in compressed form, but uses an old-fashioned method for the final packing step — the part that decides how to write the data in as few bytes as possible. Think of it as an outdated way of folding clothes into the suitcase.

JPEG XL takes those same numbers (i.e. the same picture) and runs them through its own, far more advanced entropy coder. The information doesn't change — only the way it's written down does, and it turns out to be more economical. That's where the ~20% gain comes from: it's not "removing extra from the picture," but a tighter recording of what was already there.

~20%size saving
0quality loss
1:1reversibility to the original JPEG

The key: reversibility

Here's what turns this feature from "nice" into genuinely valuable: the process is fully reversible. From a JXL produced by recompression you can reconstruct the original JPEG bit-for-bit — not a similar copy, but exactly the same file you had before.

This is critical for archives. You aren't taking an irreversible leap into the unknown: if tomorrow you need a JPEG specifically (say, for a program that doesn't understand JXL), you'll get it back identical to the original. In essence, lossless recompression is free space savings you don't have to pay for in any way.

This isn't "less space at the cost of quality." It's just less space. Quality, and the file itself, come back untouched on demand.

How it differs from a re-save

It's easy to get confused here, so let's lay out the difference clearly.

ActionQualitySizeReversible?
Re-save JPEG → JPEGDropsSlightly smallerNo
JPEG → JXL lossyDropsMuch smallerNo
JPEG → JXL losslessUnchanged~20% smallerYes, bit-for-bit

Don't mix these up

"Lossless" here refers to the recompression process, not the source. If your JPEG was already lossy (and almost all JPEGs are), that loss doesn't disappear — but it doesn't get worse either. Recompression honestly preserves exactly the quality that's there.

Who actually needs this

A 20% effect seems modest on one file, but it turns into serious numbers at scale:

  • Photo archives and backups. Tens of thousands of shots are gigabytes, and a fifth of that frees up with no downside.
  • Cloud storage. Fewer bytes mean a smaller storage bill and faster sync.
  • Photographers. Huge libraries of RAW edits exported to JPEG take up less room.
  • Gallery websites. Where the audience is on Safari, you can serve JXL directly and save bandwidth.
A studio camera shoot — professional archives benefit most from saving space
Professional photo libraries benefit from the space savings most of all. Photo: Pexels

How to try it

To pack an image into JPEG XL you don't need complicated software — an online converter is enough. If you want to turn a regular picture into JXL, the easiest start is a PNG source.

1

Open the converter

Go to the PNG → JXL page — no install, no sign-up.

2

Upload the picture

Drag the file into the converter window.

3

Get the .jxl

Download the compact JPEG XL file — done.

Try the format of the future on your own pictures

The FormatZ converter packs your image into JPEG XL right in your browser — free, with no install and no sign-up.

Convert PNG to JXL

And if someone instead sends you a .jxl you need to open, the reverse JXL → PNG converter and our guide "How to Open JXL" will help. The full list of conversions is always on the all formats page.

It is converting an old JPEG file to JPEG XL with no quality loss at all. The picture is not re-compressed from scratch; instead its already-compressed data is packed more efficiently. The file ends up about 20% smaller while the image stays exactly the same, down to the last pixel.
JPEG XL applies a more advanced entropy coder to the old JPEG's data — an algorithm that packs the same information more compactly without changing it. On average this yields about 20% smaller files, though the exact figure depends on the image itself.
Yes, and that's the key point. The recompression is fully reversible: from such a JXL you can reconstruct the original JPEG file bit-for-bit, identical to the source. That makes the process safe for archives — you lose nothing permanently.
A normal JPEG-to-JPEG re-save re-compresses the picture every time and accumulates loss. Lossless recompression to JXL never touches the image itself — it only packs the existing data more efficiently. Quality stays intact while the size shrinks.
Anyone with lots of photos: owners of large photo archives, photographers, cloud storage, sites with photo galleries. A 20% saving across tens of thousands of shots turns into gigabytes of freed-up space — with not a single drop in quality.