Convert GIF to JXL

Converting GIF to JXL re-encodes an old picture into JPEG XL, a format built for storing images rather than serving them. It is a reasonable move for a collection you are keeping, and a poor one for anything you need other people to open. The conversion runs in your browser.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. JXL cannot hold everything a GIF can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing Only the first frame is converted; an animated GIF becomes a still image.

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

What GIF to JXL actually does

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

GIF36 KB

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

JXL7 KB5.1× smaller

A photographic scene — smooth gradients, soft edges, grain. This is the case JXL 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 GIF.

GIF8 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 JXL.

JXL5 KB35% smaller

A transparent background and a gradient across the shape. JXL 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 GIF.

GIF6 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 JXL.

JXL13 KB2.1× larger

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.

A format for keeping files rather than for serving them

JPEG XL’s recorded uses here are archival and photography, and its status is niche. That combination is the honest description: it is a technically strong format with a small installed base, which makes it a candidate for a private collection and a poor candidate for anything that leaves your machine.

That is the reverse of the case for AVIF, which exists to be delivered over the web to browsers that support it. If the reason you are converting these GIFs is page weight, this is the wrong page — the delivery formats are. If the reason is that a folder of 1990s graphics is sitting on a disk and you want it in something modern, read on.

What JPEG XL was designed for, and why a GIF is not it

JPEG XL was standardised in 2021 as ISO/IEC 18181, aimed squarely at photographs: up to 32 bits per channel, wide colour, high-quality lossy compression that degrades gracefully, and the ability to re-encode an existing JPEG losslessly and smaller. Almost all of its advantages are about continuous-tone imagery.

A GIF has no continuous tone. It is 8-bit indexed colour with at most 256 entries, and it was written that way years ago. Feeding it to a photographic codec is not wrong, but it exercises none of the strengths the format is chosen for, and the size result is closer to a coin toss than the format’s reputation would suggest.

One quality control, and the lossless mode behind it

The conversion offers a quality number from 1 to 100, defaulting to 82. There is no lossless checkbox, and the encoder is driven through the same interface every other lossy target on this site uses. What comes out is therefore a re-encoding: close to the source at high settings, not identical to it.

For an archive that distinction is the whole question. Storing a lossy re-encoding of a picture that was already reduced to 256 colours means two generations of loss on an object whose value is that it is the original. If the aim is preservation rather than tidiness, either raise the quality to the top of the range and accept a larger file, or use a format where the answer is not a setting at all.

Why PNG usually wins for a 256-colour graphic

PNG compresses losslessly, keeps an alpha channel, opens in literally everything, and was designed for exactly this material — flat colour, sharp edges, limited palettes. On a typical surviving GIF it will land close to the JXL in size and it will be bit-exact.

The case where JPEG XL genuinely wins is a GIF that depicts a photograph: a heavily dithered scan or a screenshot of a photograph, where the palette reduction produced something noisy and PNG’s lossless compression has nothing to grip. There, a lossy modern codec at a sensible quality is smaller by a real margin. That is a minority of GIFs, and it is worth checking which kind you have before converting several hundred.

Partial support is a commitment you are making for years

The format’s recorded problem is patchy support, and it is the risk that matters for the use this page is about. An archive is a bet on being able to open the files later, and JPEG XL’s position in browsers has been contested rather than settled since it was standardised.

The mitigation is not complicated: do not delete the originals until the collection has been readable for long enough to trust, and keep the format decision reversible. A folder of GIFs and a folder of JXLs costs disk space, which is the cheapest thing in this trade. A folder of JXLs alone, five years from now, is a bet.

The encoder runs even where the browser cannot show the result

Encoding JPEG XL here does not depend on the browser supporting the format. The codec is a WebAssembly module the page downloads and runs, so a browser with no JPEG XL support at all will still produce a valid file.

The visible consequence is that the result cannot be previewed the way a PNG or WebP conversion can. You download a file you cannot open in the tab you made it in, and checking it means opening it in GIMP, in ImageMagick or in a desktop viewer that supports it. Worth doing on the first file before committing a batch.

Transparency comes through; the animation does not

A GIF can nominate one palette entry as transparent, and JPEG XL carries a full alpha channel, so that transparency survives the conversion. What it cannot do is soften it — the source has hard on-or-off transparency and the result records exactly that, jagged edges included.

Animation is the loss. JPEG XL can store animation and this conversion does not produce it: one frame in, one image out. For an archive of animated GIFs the correct answer is to keep the GIFs, or to convert them to video, where a real codec makes them a fraction of the size instead of a fraction of the content.

What will actually open a .jxl file today

GIMP reads and writes it. ImageMagick reads and writes it, which also makes it scriptable for anything you want to do to the collection later. Several desktop image viewers have added support, and operating system thumbnail support is uneven.

What that list does not include is a guarantee that a colleague, a client or a web form will accept one. If any of the files in this collection might need to be sent to somebody, keep a copy in a format that never needs explaining, and treat the JXL as the storage copy rather than the only copy.

Converting a collection without any of it leaving

A folder of files is dropped in one go and each is encoded in turn, in the browser, with the results returned together. The encoder is downloaded once and reused, so the cost of the WebAssembly module is paid on the first file rather than on every one.

Nothing is uploaded and there is no account, which for a personal image collection is usually the reason to do this locally rather than with an online service. The free ceiling is 100 MB per file, which no still GIF has ever approached.

How to convert a GIF into a JPEG XL file

  1. Drop the GIF, or the whole folder of them, onto this page.
  2. Raise the quality if these files are being kept rather than tidied.
  3. Download the JPEG XL files and open the first one in a desktop viewer before deleting anything.

GIF and JPEG XL: thirty-four years between two still formats

GIF compared with JXL
GIFJXL
Full nameGraphics Interchange FormatJPEG XL
File extension.gif.jxl
Media typeimage/gifimage/jxl
CompressionLossless — nothing is discardedEither, depending on the setting
First published19872021
Published byCompuServeJoint Photographic Experts Group
SpecificationGIF89aISO/IEC 18181
LicensingOpen standardOpen standard
Standing todayLegacy, still read everywhereNiche
Bit depth832
Colour it can describeindexed paletteRGB, greyscale, wide gamut
Largest image65,535 px per side
Opens in a browserEvery browserSome browsers
Considered insteadWebP, MP4AVIF, WebP, PNG

What survives

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

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

Opening the result

Only some browsers read JXL. It is the less portable of the two, so it is worth being sure the program at the other end accepts it before sending one.

GIMP and ImageMagick read both GIF and JXL, 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: GIF at the web, JXL at archiving and photography. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

GIF is CompuServe's format, published in 1987. It records 8 bits per channel.

JXL comes from Joint Photographic Experts Group and dates from 2021, specified as ISO/IEC 18181. GIMP and ImageMagick all read it.

GIF was published in 1987 and JXL in 2021. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.

GIF to JXL: losslessness, support and whether to bother

Is this conversion lossless?

No. The converter exposes a single quality control from 1 to 100 and no lossless switch, so the result is a re-encoding rather than a bit-exact copy of the GIF’s pixels. JPEG XL does define a lossless mode; this path does not reach it. If bit-exactness is the requirement, PNG is lossless by definition and this site converts to it.

Will a JXL be smaller than the GIF?

Often, but not dramatically, and sometimes not at all. GIF’s LZW compression is genuinely poor on photographic content and genuinely good on flat runs of a single colour, which is what most surviving GIFs are. Where the GIF is dithered the JXL will struggle for the same reason every modern codec struggles with dither — it is noise, and noise cannot be predicted.

What software opens a .jxl file?

GIMP and ImageMagick both read and write it, and a growing number of desktop viewers do. Browser support is partial rather than universal, which is the format’s recorded problem, so a JXL is not something you can reliably hand to somebody else or drop into a web page today.

Does the animation survive?

No. JPEG XL can hold animation, but this conversion decodes one frame and encodes one image, so an animated GIF becomes the still it opens on. Archiving an animation means keeping either the GIF itself or a video conversion of it, not a JXL.

Is transparency kept?

Yes. JPEG XL carries an alpha channel and nothing on this path flattens it, so a GIF’s transparent background comes through as transparent rather than white.

Does converting a whole folder upload anything?

No. The JPEG XL encoder is a WebAssembly module that runs in your browser, so a batch of several hundred files is processed on your own machine with nothing sent anywhere and no account.

More about these formats

Where these figures come from

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