JPG to JXL Converter

Encode a JPG as a JPEG XL file with ImageMagick, right in your browser.

or drop files here

JP

JPG Format

JPEG image

A lossy raster image format defined by the Joint Photographic Experts Group (ISO/IEC 10918-1), designed for photographs. .jpg and .jpeg are the same format.

  • lossy compression
  • adjustable quality
  • no alpha transparency
  • supported everywhere
JP

JPEG XL Format

JPEG XL image

An image format standardized as ISO/IEC 18181 by the Joint Photographic Experts Group. It supports lossy and lossless compression and can losslessly recompress existing JPEG files.

  • lossy and lossless compression
  • lossless JPEG recompression
  • alpha transparency
  • animation

How to convert JPG to JXL

Follow these steps to convert JPG to JXL online.

    1

    Choose your JPG 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.

Before converting JPG to JPEG XL

  • The JPG is decoded to 8-bit pixels and encoded as a lossy JXL; it is not a bit-exact recompression.
  • The page has no quality or lossless setting.
  • EXIF, XMP and the ICC profile are not copied.
  • Safari, GIMP, XnView MP and IrfanView open JXL files.

About JPG and JPEG XL files

What is a JPG file?

JPG, or JPEG, is the lossy photo format from the Joint Photographic Experts Group; work started in 1986, and its US patents lapsed on 27 October 2006. The baseline method, covered by ITU-T T.81 (1992) and ISO/IEC 10918-1 (1994), cuts the image into 8x8 pixel blocks and applies a discrete cosine transform and Huffman coding to each. A typical setting leaves 1/10 to 1/20 of the uncompressed size. Each channel holds 8 bits, there is no alpha, and .jpg and .jpeg mean the same thing. Cameras and scanners write it widely, and its media type is image/jpeg.

Programs that open JPG files

  • Mac, Windows and Linux: GIMP can import JPEG for editing, and ImageMagick opens JPG.
  • Mobile and Web: Chrome displays JPG on web and mobile, Safari does so on mobile, and Firefox on the web.

JPG and JXL compared

JPEG XL comes from the JPEG committee as ISO/IEC 18181. It handles lossy and lossless coding, alpha channels, animation and progressive decoding, along with high bit depth, wide color gamuts and HDR. Existing JPEG files can be recompressed by it without any loss. A .jxl file is either a bare codestream or a box-based container, and its media type is image/jxl.

This page does not recompress losslessly. Your browser decodes the JPG to 8-bit RGBA pixels and ImageMagick encodes them as a lossy JXL with default settings. Pixel values change, and there is no quality control. Metadata is dropped.

Other ways to convert JPG to JXL

  • cjxl: run cjxl input.jpg output.jxl; by default it recompresses the JPEG losslessly.
  • ImageMagick: run magick input.jpg converted.jxl, which needs the JPEG XL delegate library.
  • GIMP: open the JPG, pick File > Export As, and save the result as a JPEG XL file. GIMP 2.10.34 added export, limited to 8-bit lossless.

Problems with JPG files

  • JPEG offers no alpha channel, so transparent pixels cannot survive an export to it.
  • An editable layer stack is not preserved in JPEG, so hold on to the project file.
  • Older photo frames may reject progressive JPEG; turn progressive mode off when you export for one.

Frequently Asked Questions

Everything you need to know about our converter

How can I turn a JPG into a JXL file?

Is the JXL lossless?

Can JPEG XL recompress a JPEG without loss?

Will the JXL be smaller than the JPG?

Are my camera details kept in the JXL?

Which programs and browsers open JXL?

Does the JXL keep the picture's pixel size?

Does it keep a bigger color range?