Convert JXL to WebP

Converting JXL to WebP swaps a format only Safari displays for one every browser has read for years, with transparency intact and 8 bits per channel. It is rarely a saving in bytes — JPEG XL is the more efficient codec — and it is almost always a saving in support calls. Everything runs on your own machine.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. WebP cannot hold everything a JXL can.
  • File size limit Up to 100 MB per file, free, without an account.

Up to 100 files at once. Mixed formats are fine.

What JXL to WebP actually does

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as JXL.

JXL7 KB

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as WebP.

WebP14 KB2.0× larger

A photographic scene — smooth gradients, soft edges, grain. This is the case WebP is designed for or against, and the figures show which. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as JXL.

JXL5 KB

A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as WebP.

WebP4 KB12% smaller

A transparent background and a gradient across the shape. WebP either keeps both, keeps one, or fills the transparency with a solid colour — which is the difference that catches people out. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as JXL.

JXL13 KB

A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as WebP.

WebP11 KB18% smaller

Flat colour and hard edges, as in an interface, a chart or a logo. Very different behaviour from the photograph above, and the reason the answer is "it depends what is in the file". Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.

Why a JXL file has to become a WebP at all

JPEG XL lost the browser argument. Chrome carried it behind a flag, removed the decoder in 2023 and has not restored it; Safari shipped it and kept it. That split is the reason this page has visitors: a photograph that renders perfectly on a Mac is a broken image icon for the majority of an audience, and nothing about the file is wrong.

WebP is the other side of that history. Google published it in 2010, it is specified in RFC 9649, and every current browser reads it — as do the upload forms, the content management systems and the chat clients that sit between you and the person who has to see the picture. The conversion is not an upgrade in any technical sense. It is an exchange of fidelity for reach, made deliberately.

What WebP support reaches that JXL support does not

Browser support is the headline, but it is not the part that costs most people an afternoon. The failures cluster around the software nobody thinks about: a WordPress media library that rejects the extension, a Slack preview that stays blank, a Windows colleague whose Photos app shows nothing, a product feed validator that refuses the file outright. None of those will show you a useful error; most simply behave as though you attached nothing.

JPEG XL has GIMP and ImageMagick on its side and comparatively little else in the consumer tier. WebP arrives with Photoshop, GIMP and Squoosh reading it directly and near-universal handling everywhere a file gets uploaded rather than opened. If the destination is a form, a feed or somebody else's inbox, that difference decides the conversion on its own.

Eight bits per channel: the depth a WebP cannot hold

JPEG XL allows up to 32 bits per channel and describes wide-gamut colour natively, which is a large part of why it was proposed as an archival format. WebP stores 8 bits per channel and nothing more. Any headroom the original carried for exposure correction or gamut mapping stops at this conversion.

The pipeline makes that concrete before the encoder ever runs. The JPEG XL decoder returns 8-bit RGBA pixels, and everything downstream works on that buffer, so the reduction happens on the way in rather than as a compromise inside the WebP encoder. Keep the JPEG XL. It is the master copy, and once these pixels are 8-bit there is no route back to the depth that was in the original.

A JXL can be wider than any WebP is allowed to be

This one surprises people converting scans and panoramas. The WebP container encodes image dimensions in 14 bits, so 16,383 pixels is the hard maximum on each axis — not a setting, not a tier, a limit written into the format. JPEG XL has no comparable ceiling in ordinary use, which is one of the reasons it was proposed for scanning and archival work in the first place.

The maximum-width control on this page is the answer when a file runs past it. Set a width the destination actually needs — 2,000 pixels is generous for a full-bleed web image — and the conversion resizes before encoding. If the whole point of the file is that it is 20,000 pixels wide, WebP is the wrong target and TIFF or PNG is the honest recommendation instead.

Transparency comes through the JXL to WebP step untouched

Both formats carry a full alpha channel, so this is one of the few conversions on the site where transparency is a non-event. A cut-out product shot or a logo with soft edges converts with no background colour to pick, no fringe, and no decision to get wrong afterwards.

That is worth contrasting with the alternatives people consider from the same starting point. Going to JPG or BMP means flattening the alpha onto a chosen colour, and if the image will sit on more than one background that choice is a permanent mistake. Where transparency exists in the source, WebP and AVIF are the only two mainstream delivery targets that keep it.

An animated JXL arrives as one WebP frame

JPEG XL can hold animation and so can WebP, which makes this the disappointing case: the decoder used here returns a single image, so an animated source comes out as a still. The first frame is what you get, and the rest of the file is discarded silently by the codec rather than by any choice made on this page.

If the motion matters, the picture format is the wrong destination entirely. A short clip as MP4 or WebM is typically a fraction of the size of the equivalent animation and plays with hardware decoding on every phone. Treat this conversion as a way to get a poster frame out of an animated file, not as a way to move the animation.

The quality setting on a JXL source, and where to leave it

The default is 82, which is the point where the re-encode is invisible at normal viewing size on most photographs. Because the source is already a compressed image in most cases, this is a second generation of lossy compression, and the artefacts that stack are the ones around hard edges and text rather than in open sky. The one case where the default is clearly wrong is an image that was already compressed hard once, where a second pass at 82 will visibly sharpen what the first pass smeared.

Raise it towards the mid-nineties for screenshots, diagrams and anything with one-pixel lines or small type — that is where a second pass shows first. Lower it below 70 only for decorative backgrounds nobody inspects. And convert from the JPEG XL every time you need a new size rather than re-encoding the WebP, because each pass through a lossy codec starts from the previous one's mistakes.

What the JXL carried that the WebP will not

JPEG XL can hold EXIF, XMP and an ICC profile. None of it reaches the output here. The conversion decodes to raw pixels and encodes again, which is a round trip no metadata block survives. There is no switch for it on this page, because there is nothing for a switch to decide: the pixels are all that crosses.

That is usually the outcome people want on a web image — the GPS coordinates of the house a photograph was taken in have no business in a page asset — but it is a loss where the file is also the record. If the capture date, the camera model or the colour profile matter to you, keep the JPEG XL alongside the WebP rather than replacing it. And note the profile in particular: an untagged WebP is interpreted as sRGB by every viewer, so a wide-gamut original can shift visibly.

The WebP written from a JXL is always the lossy kind

WebP has two modes. The lossless one stores exact pixels and is the right choice for flat graphics; the lossy one is a still frame of the VP8 video codec and is what almost every WebP on the web actually is. This conversion writes the lossy mode, at the quality you set, with no switch to change it.

One detail of that encoder is worth knowing because it works in your favour: the alpha channel is compressed separately from the colour and at full quality by default, so the transparency stays crisp even when the picture itself is being compressed hard. If you need genuine lossless output from a JPEG XL, PNG is the target on this site that provides it, at a considerably larger file.

Converting a folder of JXL files without uploading them

Drop the whole directory. Each JPEG XL is decoded and re-encoded in turn on your own processor, keeps its filename with the extension swapped, and the set comes back as a single ZIP. There is no queue, no per-file wait and no daily allowance, because there is no server doing the work. The engine itself is fetched once, on demand, the first time a conversion runs on the page — a visitor who only reads the text downloads none of it.

The privacy argument is stronger here than the general one, because of who ends up with JPEG XL files. They come from photographers testing an archival codec, from Apple devices, and from people who chose the format on purpose — which is to say from libraries of personal photographs rather than from stock imagery. Files up to 100 MB convert on the free tier, and none of them leaves the machine you are sitting at.

How to turn a folder of JXL files into WebP

  1. Drop your JXL files onto this page — an entire folder works.
  2. Set a maximum width if the image is wider than 16,383 pixels.
  3. Take the WebP files one by one, or all of them as a ZIP.

JXL against WebP: reach bought with fidelity

JXL compared with WebP
JXLWebP
Full nameJPEG XLWebP Image
File extension.jxl.webp
Media typeimage/jxlimage/webp
CompressionEither, depending on the settingEither, depending on the setting
First published20212010
Published byJoint Photographic Experts GroupGoogle
SpecificationISO/IEC 18181RFC 9649
LicensingOpen standardOpen standard
Standing todayNicheCurrent
Bit depth328
Colour it can describeRGB, greyscale, wide gamutRGB, YCbCr
Largest image16,383 px per side
Opens in a browserSome browsersEvery browser
Considered insteadAVIF, PNGAVIF, JPG, PNG

What is lost

JXL carries up to 32 bits per channel and WebP stores 8. The extra precision is what survives heavy correction without banding, so the conversion is best made after the editing rather than before it.

What survives

Transparency survives. Both JXL and WebP store an alpha channel, so a cut-out stays cut out and nothing is filled in behind it.

Animation survives. JXL and WebP both hold multiple frames, so the result moves rather than freezing on the first one.

Opening the result

WebP opens in every current browser. JXL has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

GIMP reads both JXL and WebP, so there is a way to check the result against the original without a second tool.

What each format is for

The two are aimed at different work: JXL at archiving and photography, WebP at the web and handing a finished file over. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

JXL is Joint Photographic Experts Group's format, published in 2021. It records 32 bits per channel.

WebP comes from Google and dates from 2010, specified as RFC 9649. Adobe Photoshop, GIMP and Squoosh all read it.

JXL to WebP: support, transparency and pixel limits

Are my JXL files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is jSquash, WebAssembly builds of the reference image codecs; your browser fetches it once and caches it.

Why will Chrome not open my JXL file?

Chrome carried JPEG XL behind a flag and then removed the decoder in 2023, and it has not come back. Safari is the one mainstream browser that displays JPEG XL today, which is why a file that looks fine on a Mac shows as a broken image for most of the people you send it to. WebP has been readable in every browser for years.

Will the WebP be smaller than the JXL?

Often it will not, and it is worth saying plainly. JPEG XL is the more efficient codec at equal visible quality, so a WebP written at the default setting can land at the same size or larger. What you gain is not bytes, it is the file opening everywhere.

Does transparency survive the conversion?

Yes. WebP has a real alpha channel, so a cut-out or a soft-edged JPEG XL comes across without a fill colour to choose and without a halo at the edges. Nothing on this conversion asks you for a background, because nothing needs one.

What happens to a 32-bit or wide-gamut JPEG XL?

It is reduced. JPEG XL allows up to 32 bits per channel and wide-gamut colour; WebP tops out at 8 bits per channel, and this converter decodes to 8-bit RGBA before it encodes anything. No ICC profile is written into the WebP either, so an untagged result is read as sRGB by every viewer.

Is there a maximum image size?

WebP cannot describe an image longer than 16,383 pixels on either side — that is the format, not a limit here. Files up to 100 MB convert on the free tier. If your JPEG XL is larger than the pixel ceiling, set a maximum width before converting or pick a different target.

What happens to an animated JPEG XL?

You get the first frame as a still WebP. Both formats can hold animation, but the decoder used here returns a single image, so the remaining frames are not carried over. If the motion is the point, convert the source to MP4 or WebM instead.

More about these formats

Where these figures come from

The claims this page makes about JXL and WebP are checkable, and these are the documents that settle them.