Skip to content

KTX2 Texture Compressor ​

Convert PNG, JPG or WebP textures to KTX2 with Basis Universal in your browser. Single and batch conversion are free without sign-in. The Decode tab opens a .ktx2 and exports PNG, WebP or JPG. Local conversion and downloads do not upload your files.

Why KTX2 for Web Games ​

Download size and GPU memory are different. A 2048×2048 texture stored as RGBA8 uses 16 MiB for its base level, or about 21.3 MiB with a full mip chain. Basis Universal textures in KTX2 can be transcoded to a compressed format supported by the device, such as BC, ASTC or ETC2. Savings depend on that format and the mip levels; a loader can fall back to uncompressed pixels when no compatible compressed format is available. Check the result on your target devices instead of assuming a fixed memory or frame-rate improvement.

KTX2 is the container format standardized by Khronos, and it's supported by the major web engines: Three.js, Babylon.js, and PlayCanvas all ship KTX2 loaders.

UASTC vs ETC1S: Which to Pick ​

Basis Universal offers two compression modes, and this tool supports both:

UASTC is the high-quality mode. It preserves detail well, which makes it the right choice for hero assets, normal maps, and anything where artifacts would show. Files are larger, but you can add Zstandard supercompression to shrink the download (it decompresses back to the GPU format at load).

ETC1S is the small-file mode. It compresses much harder with a quality slider, so it's ideal for the bulk of your textures where tiny size matters more than perfect fidelity, like base-color maps on props and background detail. Use UASTC with Zstandard for normal maps and UI with sharp edges; block compression can still change exact pixel values.

A common approach is ETC1S for most textures and UASTC for the few that need it.

How to Use It ​

  1. Drop a PNG, JPG, or WebP onto the box above (or click to choose). It never leaves your browser.
  2. Choose a Texture type: base color uses ETC1S with sRGB; normal and data maps use linear UASTC; UI uses UASTC with sRGB. UASTC presets enable Zstandard. You can also choose custom settings.
  3. Keep Generate mipmaps enabled for textures viewed at varying distances. These mip levels are stored in the file; compressed textures cannot generate them at runtime. Normal-map mipmaps are renormalized, and filtering uses the selected color space.
  4. Choose the orientation for your scene, click Encode to KTX2, and compare the source and output sizes before downloading. A KTX2 can be larger than its PNG source even when it saves GPU memory.

The Batch tab converts up to 10 images at once, with free local downloads and no sign-in. Saving the results to your Cinevva account is optional and requires sign-in.

Orientation in three.js ​

The default glTF / top-left option preserves source row order. Choose three.js TextureLoader when replacing a PNG loaded with TextureLoader’s default flipY=true: the converter flips the pixels before compression. KTX2Loader cannot flip compressed pixels during upload, so choose the orientation to match your UVs. Both modes write KTXorientation metadata; the Decode tab and asset previews honor it when showing or exporting an image.

Use sRGB for base-color art. Normal, roughness, metalness and other data maps use linear transfer with unspecified color primaries, which three.js reads as NoColorSpace. The result shows the actual encoded codec, transfer function, mip count and supercompression.

Each batch row has its own texture-type selector, so color and normal maps can use different settings in one batch. Changing settings invalidates the old result until you encode again.

Large images and browser limits ​

This browser converter accepts images up to 4096 × 4096 and source files up to 64 MB. It reads dimensions before decoding pixels, so an 8K source produces a resize message instead of a partial file. These are the tool’s memory limits, not a guarantee that every phone can convert a 4K image. Allocation, GPU readback and output-validation failures also stop conversion with an error.

KTX2 to PNG: Decoding a Texture ​

The Decode tab goes the other way. Drop a .ktx2 file and the tool transcodes it to plain RGBA pixels with the same Basis Universal transcoder that Three.js uses at load time, then shows you what's inside: the codec (ETC1S or UASTC), how many mip levels it has, the supercompression scheme, the color space, and whether it carries alpha. Download the result as PNG (lossless), WebP, or JPG, and pick any mip level if you want a smaller copy.

Two things to know. ETC1S and UASTC are lossy, so what you get back is what the GPU sees, not your original pixels. Keep the source PNG in version control and re-encode from that when you can. And uncompressed KTX2 files (8-bit and float RGBA) decode too, but cubemaps and texture arrays don't yet.

Common Questions ​

What is a KTX2 file? ​

KTX2 is a Khronos texture container. With Basis Universal, a loader can transcode its contents to a compressed GPU format supported by the device. KTX2 can also contain uncompressed textures, so the extension alone does not guarantee GPU memory savings.

How do I convert a PNG to KTX2? ​

Drop the PNG into the tool above, choose UASTC (quality) or ETC1S (smaller), and click Encode to KTX2, then download the file. It runs entirely in your browser using Basis Universal compiled to WebAssembly, so the image is never uploaded.

Should I use UASTC or ETC1S? ​

Use UASTC for textures where quality matters most, like hero art and normal maps, and add Zstandard supercompression to shrink the download. Use ETC1S for the bulk of your textures where small size matters more than perfect detail. Many games mix both.

Does KTX2 work in Three.js, Babylon.js, and PlayCanvas? ​

Yes. All three major web engines ship a KTX2 loader that transcodes the texture to a GPU-native format at load time. Check our WebGL & WebGPU Checker to see which compressed-texture formats (BC, ASTC, ETC2) the current device supports.

Can I convert multiple textures at once? ​

The Batch tab converts up to 10 images at once, with free local downloads and no sign-in. Saving the results to your Cinevva account is optional and requires sign-in.

Is this KTX2 converter free and private? ​

Local encoding, decoding and downloads are free and do not upload your files. If you choose to save an encoded texture to your Cinevva account, that action uploads the KTX2 file and its source image as a thumbnail and requires sign-in.

Can I convert a KTX2 file back to PNG? ​

Yes. Switch to the Decode tab, drop the .ktx2 file, and download it as PNG, WebP, or JPG. The transcoder runs in your browser, so the file is never uploaded. Bear in mind that ETC1S and UASTC are both lossy: decoding gives you the texture as the GPU sees it, not your original pixels, so keep the source PNGs in version control and re-encode from those rather than round-tripping. If you'd rather script it, the official ktx extract command from Khronos KTX-Software does the same job on the command line.

Which textures should I not compress? ​

Leave anything that carries exact values alone. Lookup tables, noise masks, data textures baked for a shader and pixel-art sprites with hard edges all suffer visibly under block compression, and normal maps need UASTC rather than ETC1S if you want to avoid banding on smooth surfaces. Colour maps and roughness or metallic maps are the safe wins.