AZTools.us
English

JPG & PNG to JPEG XL (JXL) Converter

Before / after split + per-file sizes Batch, every lossless file checked

Public-domain (CC0) file from Wikimedia Commons, downloaded to your browser only when you click.

JPG/PNG to JXL Converter settings

Load a file to unlock this tool’s controls:

Before / after split + per-file sizes

Runs directly on the web inside your browser. Your original file is never modified or uploaded.

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.

Updated

How to convert JPG or PNG to JXL

  1. Drop .jpg, .jpeg, .png or .webp images onto the workspace. Use “+ Add files” to add more to the list.
  2. 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.
  3. 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.
  4. 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.
  5. Select a file and drag the divider to compare the original (left) with the result (right). Under “Zoom”, choose 100% to check fine detail.
  6. 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.

Per-file results
Input and modeWhat you get
JPEG, LosslessThe same JPEG inside JXL, usually about 20% smaller, checked to restore byte for byte; EXIF and GPS data stay in the file
PNG, LosslessEvery pixel and its transparency kept exactly, checked after encoding; a 16-bit PNG is reduced to 8 bits per channel and marked
WebP, LosslessThe 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, LossyPixels re-encoded at the chosen quality, with no EXIF, GPS or other metadata
File cannot be readMarked 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.