KTX2 to AVIF Converter

Add a KTX2 texture and get a light AVIF of its full-size picture, see-through parts included.

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. Your texture's colors are laid out in full
  2. The AVIF encoder rounds them, a little
  3. Solid and see-through pixels go into the AVIF

What it does

Under a quarter of a UASTC texture

Our test texture is packed the looser UASTC way. A tighter ETC1S texture can weigh less than its own copies: ours is 11.4 KB, and its JPG 22.3 KB.

The AVIF of our UASTC test texture, against the texture: 75.3% smaller

Gaps stay open

See-through pixels pass into the AVIF, so a cut-out texture keeps its shape.

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

How close does an AVIF stay to your KTX2 texture?

Closer than a JPG of the same weight. On our test texture, the AVIF's colors strayed about half as far as the JPG's.

Why does every lighter file made from a texture round its colors twice?

Say you want a texture's picture on a web page or in a write-up, and a PNG is too heavy. Any lighter format saves room by rounding colors off a little. A KTX2 texture, though, has usually been rounded once already: the packing that lets graphics cards read it quickly is itself a slightly loose copy of the picture it was made from.

It's like tracing a drawing that was itself traced. Each tracer's hand wobbles a little, and the wobbles add up. The texture is the first tracing, and whatever format you pick next makes the second. What matters is how far the copy strays from the texture you have.

We saved one test texture as an AVIF and as a JPG at the tools' starting Quality of 92. They came out almost the same weight, 21.7 KB and 20.9 KB, so the difference is in how they spent it.

At nearly the same weight, the AVIF strayed about half as far

AVIF 7 levels
JPG 13 levels

Largest color shift from the texture, levels

The worst single color value in each file, against the texture's own on the 0 to 255 scale. How we measured

The typical pixel tells the same story. Averaged over every color value in the picture, the AVIF moved 0.36 of a level and the JPG 0.71. Both are well under one level; the AVIF simply starts closer to the texture.

Does the AVIF keep a texture's see-through parts?

Yes, and that's the other reason to choose it over a JPG. Textures for leaves, fences, hair and decals usually have see-through pixels, so the model shows what's behind the gaps. An AVIF has room for them, and FluffyBench passes them through. A JPG has none, so the gaps get a white backing.

Our test texture was solid all over, so this page measured no see-through pixels; what happens to them comes from FluffyBench's code.

Making the AVIF with FluffyBench

The tool at the top of this page is already set from KTX2 to AVIF.

  1. Drop the .ktx2 onto the tool, or find it with Choose images.

  2. Open Settings with the gear if you're on a phone. On a wider screen they already sit beside the tool.

  3. Quality starts at 92, as measured here. Moving it higher keeps the AVIF closer to the texture and makes the file heavier.

    The Quality setting at 92, its slider outlined.
    The Quality setting at 92, its slider outlined.
  4. Press Convert 1 to AVIF.

  5. The result card's Download button saves the .avif.

Which other copy might suit you better?

No rounding at all: you'll edit the picture, or build a texture from it again.

FluffyBench's KTX2 to PNG converter

A PNG keeps the texture's pixels exactly, at several times the AVIF's weight.

The picture is solid and has to open in older software.

FluffyBench's KTX2 to JPG converter

Nearly every app reads a JPG, and for a single copy its extra drift is small.

You want the lightest file and know where it's going opens JPEG XL.

FluffyBench's KTX2 to JPEG XL converter

It came out lighter than both the AVIF and the JPG from the same texture.

Search FluffyBench