GIF to JXL Converter

Save the first frame of a GIF as a JPEG XL image.

or drop files here

GI

GIF Format

Graphics Interchange Format

A raster format introduced by CompuServe in 1987 with LZW compression, a palette of at most 256 colors per image, and animation.

  • 256-color palette
  • LZW compression
  • animation
  • 1-bit transparency
JX

JXL Format

JPEG XL

An image coding system from the JPEG committee with lossy and lossless coding, alpha, animation and HDR.

  • lossy and lossless
  • alpha and animation
  • image/jxl

How to convert GIF to JXL

Follow these steps to convert GIF to JXL online.

    1

    Choose your GIF file, or several at once.

    2

    Wait while the converter turns each file into JXL.

    3

    Download each new JXL file. Your original file isn't changed.

What to know before converting GIF to JXL

  • Only the first frame is used, so the JXL is a still.
  • Metadata is not carried over.
  • The page sets no lossless or quality option.
  • Not every viewer opens JXL.

About GIF files

What is a GIF file?

GIF came out of CompuServe in 1987. Pixels are compressed losslessly with LZW against a palette that holds at most 256 colors, and one palette entry can be flagged transparent, meaning a pixel is fully clear or fully solid, never partly see-through. A file may hold several images in sequence, which is how a GIF animates. The registered media type is image/gif.

Programs that open GIF files

  • Windows, Mac and Linux: GIMP opens GIF, and ImageMagick reads it.
  • Web and mobile: Chrome handles GIF in a browser tab as well as on a phone, Firefox does so on the web, and Safari does so on a phone.

GIF and JXL compared

  • Compression: JPEG XL is designed for both lossy and lossless coding, and it can losslessly recompress existing JPEG files.
  • Features: it supports alpha transparency and animation, and it is used for high-bit-depth and HDR images. A GIF palette stops at 256 colors.
  • Loading: JPEG XL allows progressive decoding, so a viewer can show an image before it has fully downloaded.
  • Metadata: a JXL file can contain Exif, XMP and JUMBF metadata.
  • Names: the extension is .jxl and the media type is image/jxl.
  • Support: Safari, GIMP, XnView MP and IrfanView are listed as programs that open it.

The page decodes your GIF with the browser's own image decoder and reads only the first frame, so a JXL made here is a still. The pixels pass through 8-bit RGBA. ImageMagick, running in your browser, writes the JXL. No server is involved. The page puts no size limit on a file, and a large one just takes longer.

Other ways to convert GIF to JXL

  • cjxl: run cjxl -d 0 loop.gif loop.jxl. The command line tool accepts GIF input, and -d 0 selects mathematically lossless coding. It compresses an image or an animation, so it is the route to an animated JXL.
  • GIMP: open the GIF in GIMP, pick File > Export As, give it a name that ends in .jxl and click Export. The JPEG XL export dialog has a Lossless checkbox.

Problems with GIF files

  • Soft edges turn hard: a GIF has no partial opacity, so a soft transparent edge loses its fade.
  • Gradients change: exporting to GIF in GIMP leaves at most 256 colors, and that can alter gradients.
  • Frames cover each other oddly: with frame disposal, later images cover earlier ones in different ways, so pick combine or replace to match the animation.
  • A comment goes missing: GIF comment text must be seven-bit ASCII, so GIMP leaves out any comment with other characters.

Frequently Asked Questions

Everything you need to know about our converter

Will an animated GIF stay animated in JXL?

Is the JXL lossless?

Does JXL give me more than 256 colors?

What will the output file be named?

Are metadata and profiles kept?

Which programs open a JXL?

Why does the page say Image decode failed?

Can several GIFs be converted together?