JPG & PNG to JPEG XL (JXL) Converter
Before / after split + per-file sizes Batch, every lossless file checked
JPEG XL (.jxl) is a newer image format that can hold an existing JPEG in about a fifth less space without changing a single pixel, and that also stores PNG-style images losslessly. This tool converts a batch of JPG, PNG and WebP images to JXL in your browser, checks every lossless result before offering it, and shows the size before and after for each file. Images are not uploaded.
How to convert JPG or PNG to JXL
- Drop .jpg, .jpeg, .png or .webp images onto the workspace. Use “+ Add files” to add more to the list.
- Choose the “Mode”. “Lossless” (the default) keeps every JPEG exactly as it is inside the JXL and stores PNG and WebP pixels without loss. “Lossy” (smaller) re-encodes the pixels at the “Quality” you set: 90 by default, from 50 to 99.
- Pick a “Speed”: “Fast”, “Balanced” (the default) or “Smallest file”. Slower settings search harder for a smaller file; they matter for PNG and lossy output, while JPEGs in lossless mode always take about the same short time.
- Watch each row: it shows the size before and after, and a note such as “Exact JPEG · checked: restores the original byte for byte”. Every file is encoded again after a setting changes, starting with the selected one.
- Select a file and drag the divider to compare the original (left) with the result (right). Under “Zoom”, choose 100% to check fine detail.
- Export. One image downloads on its own as .jxl; two or more download as one ZIP.
Lossless JPEG recompression: what “exact” means
In lossless mode a JPEG is not decoded and re-compressed. Its existing compressed data is moved into the JXL file with more efficient coding, so the image looks identical and the JXL can be turned back into the original .jpg, byte for byte. Savings are usually around 20%; this tool’s own sample photo went from 316 KB to 257 KB.
Before a result is offered, the tool rebuilds the JPEG from the new JXL and compares it with your file. If a single byte differs, that file fails with “Check failed” and nothing is saved. Lossless PNG and WebP results are decoded again and compared with the source pixels.
A few JPEGs cannot be stored this way (CMYK files and some unusual encoders). Those are encoded from their pixels instead, at the “Quality” of lossy mode (90 unless you changed it), and the row says so in amber.
What happens to each file
Images encoded from their pixels are limited to 20 megapixels and JPEGs stored exactly to 32 megapixels, because the encoder runs within a fixed amount of browser memory. A PNG’s colour profile is not carried over (a profile other than sRGB is marked on the row), and JPEG and WebP pixels are converted to sRGB when they are decoded.
| Input and mode | What you get |
|---|---|
| JPEG, Lossless | The same JPEG inside JXL, usually about 20% smaller, checked to restore byte for byte; EXIF and GPS data stay in the file |
| PNG, Lossless | Every pixel and its transparency kept exactly, checked after encoding; a 16-bit PNG is reduced to 8 bits per channel and marked |
| WebP, Lossless | The pixels as the browser decodes them, kept exactly; a lossy WebP often comes out bigger, and the row says “bigger than the original” |
| Any image, Lossy | Pixels re-encoded at the chosen quality, with no EXIF, GPS or other metadata |
| File cannot be read | Marked as failed and left out of the ZIP; “Remove failed” clears such rows |
Opening .jxl files
Safari 17 and later shows JPEG XL, as do Chrome from version 155 and current versions of Firefox. Image apps differ, so check the program you will open the files with. When the tool finds that your browser cannot show .jxl, it says so and decodes the preview itself.
To get a JPEG back from a lossless JXL, open it with any libjxl-based converter, for example djxl photo.jxl photo.jpg; it rebuilds the original file.
JPG/PNG to JXL Converter: common questions
- Lossless or lossy: which should I choose?
- For JPEG photos, “Lossless” is the safe default: the files get smaller and nothing about the picture changes. Choose “Lossy” (smaller) when you need much smaller files, for example for a website, and compare a few images at 100% zoom to pick the quality.
- Why is my JPEG’s location still in the JXL file?
- Lossless mode keeps the whole JPEG, including its EXIF and GPS data, so the original can be restored exactly. To remove location and camera data first, run the photos through the EXIF & GPS metadata scrubber, then convert them. Lossy mode writes pixels only and keeps no metadata.
- Are my images uploaded?
- No. Decoding, encoding and the checks happen in your browser tab, and the results are saved straight to your device.
Related tools
Batch WebP & AVIF Image Optimizer
Shrink website images to WebP or JPG in your browser, with a max-width resize and a per-file size table. AVIF output is offered only when your browser can encode it; most cannot yet, and the tool tells you when it is unavailable. Compare original and result on a split view.
Photo GPS & EXIF Metadata Remover
See the GPS location, camera serial and capture time hidden in your photos, then remove them in a batch. JPG, PNG and WebP are cleaned without re-compressing; HEIC is saved as JPG. Each cleaned file is re-read to confirm no tags are left.
HEIC to JPG Converter (Batch, PNG & WebP)
Convert dozens of iPhone .heic photos to JPG, PNG or WebP in your browser. Each photo gets its own row with size and status; a damaged file is skipped instead of stopping the batch. Check detail at 100% zoom before saving.