Skip to content
smallPict
Start free

WordPress3 min read

Try JPEG XL in Your Browser, Then Turn It On in WordPress

A step-by-step guide: convert a photo to JPEG XL with a free in-browser tool, then enable JPEG XL in the smallPict WordPress plugin and check it on your page.

smallPict Team

Product

This guide takes you from "what does JPEG XL look like?" to JPEG XL on your own WordPress site in two parts. The first needs nothing but a browser.

Part 1: convert a photo in your browser

  1. Open the JPG to JXL converter. For a PNG, use PNG to JXL.
  2. Drop in one or more photos.
  3. Choose the quality and wait a moment. The conversion runs on your own device, and nothing is uploaded.
  4. Download the .jxl files.

Compare the file sizes with the originals in your file manager. To open a .jxl file where your viewer does not support it, convert it back with JXL to JPG or JXL to PNG.

The browser tool makes a regular JPEG XL file from the image's pixels. Lossless JPEG recompression, which keeps every pixel of a JPEG, is part of the WordPress plugin (Pro and Business) and the API. See Lossless JPEG Recompression.

Part 2: turn it on in WordPress

  1. Update the smallPict plugin to 1.4.
  2. Go to Settings → smallPict → Settings.
  3. Under output format, choose WebP, or AVIF, with WebP as a backup. JPEG XL needs WebP behind it.
  4. Turn on JPEG XL (full-size images only, beta) and save.

From then on, new uploads get a JPEG XL copy of the full-size image. For images already in your library, run Optimize library (how Bulk Optimize works).

If the setting is greyed out, the note under it says why: the output does not include WebP, or your account needs a refresh (use Refresh plan and quota on the Account tab). If you use Cloud Offload, those images keep WebP for now.

Part 3: check it on your page

Open a post that shows a full-size image, right-click the image and choose Inspect. You should see:

HTML
<picture class="smallpict-picture">  <source type="image/jxl" srcset="https://example.com/wp-content/uploads/2026/11/photo.jxl">  <img src="https://example.com/wp-content/uploads/2026/11/photo.webp" ...></picture>

A browser that supports JPEG XL loads the .jxl file; any other browser loads the WebP. In the browser's Network panel you can see which one was downloaded.

Images shown in several sizes (with a srcset of several widths) and thumbnails keep WebP in this beta.

If your server runs nginx

On Apache and LiteSpeed, smallPict tells the server to send .jxl files with the right type. nginx does not read that setting: add image/jxl jxl; to the types block of its mime.types, or ask your host to.

Written by smallPict Team

Product

We build image conversion and CDN delivery for websites and apps.

Try it on your own images.

100 MB a month free. About two minutes to set up on WordPress.

More on image performance, Core Web Vitals and cloud storage.

All articles