KTX2 to JXL Converter

Add a KTX2 texture and get a JPEG XL of its full-size picture, the lightest picture file it makes here.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

How it works
  1. The KTX2's largest picture is opened up
  2. It's described afresh, made for viewing
  3. You download one small .jxl

What it does

Nudged, nearly everywhere

Four pixels in five shift slightly at the starting Quality.

In our test texture: 53,428 of 65,536 pixels changed

Notes left behind

A texture can name the program that made it and the settings it used. None of that comes along.

Limits Only the full-size picture of the first face and layer comes through, and 3D textures aren't opened.

Why is a JPEG XL so much smaller than a UASTC texture?

A texture packed the UASTC way pays the same for a patch of empty sky as for the busiest corner of the picture. A JPEG XL pays for detail.

Why does a UASTC texture spend as much on blank sky as on detail?

Because a graphics card reads a texture in the middle of drawing, a few pixels at a time, jumping to wherever it needs. To find any spot at once, it relies on every patch of the picture taking the same room.

Picture a filing cabinet whose drawers are all one size. You can open drawer 900 without searching, because you know exactly where it is, but a drawer holding one sheet takes up as much wall as one holding fifty. A texture's drawers are tiles of 4 by 4 pixels.

Our test texture, a 256-pixel photo of trees against a pale sky, is kept in Basis UASTC form, and its full-size picture fills 4,096 tiles of exactly 16 bytes each. A JPEG XL is laid out for looking at, not for jumping around in, so it can spend almost nothing on smooth sky and save its bytes for the busy parts.

That holds for the looser UASTC kind. The tighter ETC1S kind squeezes its tiles again for the download, so our ETC1S version of the same photo keeps its full-size picture in just 4.9 KB, less than the JPEG XL. A viewer unpacks it back into same-size tiles when it loads it.

The JPEG XL holds the same full-size picture in about a quarter of the room

Inside the KTX2 65.5 KB
As a JPEG XL 17.0 KB

Full-size picture, KB

The texture's bar leaves out its smaller copies for distant views, which the JPEG XL doesn't carry either. How we measured

What do you give up for the smaller file?

Exactness, a little. At its starting Quality of 92, the converter lets the JPEG XL nudge pixels by a hair: on average less than one level out of 255, and never more than 14 in our test.

The cabinet goes too. A graphics card can't draw from a JPEG XL; a game or viewer would have to unpack all of it first. That makes this the copy for keeping or showing a texture's picture, not for putting it back in a model.

It's also the lightest picture file FluffyBench made from our texture: 17.0 KB, against 20.9 KB for the JPG, 21.7 KB for the AVIF and 99.9 KB for the PNG. The catch is where it opens. JPEG XL is newer than the others, and some browsers and image apps can't show it yet, so check before you send one.

Saving a texture as JPEG XL with FluffyBench

The tool at the top of this page already goes from KTX2 to JPEG XL, at the Quality measured here.

  1. Press Choose images and select the .ktx2.

  2. Press Convert 1 to JPEG XL.

  3. Compare the card's two sizes. The upper one is the texture's; the JPEG XL's follows its width and height.

    The finished card's text: the texture's name and size, then the picture's width and height and the JPEG XL's size, outlined.
    The finished card's text: the texture's name and size, then the picture's width and height and the JPEG XL's size, outlined.
  4. The arrow button at the end of the same card saves the .jxl.

Where should the picture go if not to JPEG XL?

Whoever gets the file may not be able to open JPEG XL.

FluffyBench's KTX2 to AVIF converter

Nearly as light, in a format more browsers and apps already open.

You'll edit the picture, or need every pixel as the texture has it.

FluffyBench's KTX2 to PNG converter

No nudging at all, for several times the weight.

Search FluffyBench