Extract Images from DDS, KTX and KTX2 Textures

A game texture can hold one picture many times over. Each copy comes out here as a PNG.

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

Why did one texture file give you nine pictures?

Because it keeps the picture at every size a game might need, each half the last, down to a single pixel. All those copies cost the file only about a third more.

The same picture, halved and halved again

You wanted the picture out of a .dds file from a game, and the tool handed you a stack of PNGs, most of them tiny. Nothing went wrong. The texture held all of them.

A game draws the same wall, crate or sign up close and far away. Up close it needs every pixel; across a field the whole sign may cover a dozen pixels on screen, and squeezing a big picture into so few on every frame is slow, and looks worse than a copy made at that size ahead of time. So the texture carries ready-made smaller copies, and the game picks the one nearest the size it's drawing. Graphics programmers call the set mipmaps, and each copy a level.

Each level is half as wide and half as tall as the one before it. Our test texture starts with a 256-pixel square photo and goes 128, 64, 32, 16, 8, 4, 2, 1, ending at a single pixel: nine pictures in one file.

A lake below a mountain at full size, and beside it a column of the same photo, each copy half the size of the one above, the last ones mere dots.

Nine levels, one scale

The nine PNGs the tool saved from one texture, drawn to one scale. The eight smaller copies stack into a column half as wide as the full-size picture and no taller. How we measured · Photo: NPS Photo, Public domain, U.S. federal work; Public Domain Mark 1.0, via Wikimedia Commons / National Park Service.

Halving both sides leaves a quarter of the pixels each time, so all eight smaller copies together hold 21,845 pixels, a third of the 65,536 in the full-size picture. The file shows the same: saved without the smaller copies, our photo's texture is 32,896 bytes; with them it's 43,832, about 33% more.

Picking out the full-size picture

  1. Pick the .dds, .ktx or .ktx2 file with Choose files.

  2. Press Extract to unpack every level the texture holds.

  3. The first tile, Full size, is the picture at the size it was made. Press its Download.

    The Full size tile and the Level 1 tile, each showing the lake photo and DDS · BC1 / DXT1. The Download under Full size is outlined.
    The Full size tile and the Level 1 tile, each showing the lake photo and DDS · BC1 / DXT1. The Download under Full size is outlined.

The PNGs are named by level, from dds-photo-dxt1-mipmaps-dds-mip0-2D-0.png to dds-photo-dxt1-mipmaps-dds-mip8-2D-0.png, so they sort in order. Usually the full-size one is what you're after. The smaller ones are worth keeping only if you'll build a texture again and want the game's own copies, not new ones made from the full size.

Take on One image per file saves the full-size picture alone. A cube map, a texture for the six inside faces of a box such as a sky, gives a full set of levels for each face, with the face named in each file.

When a texture isn't the end of it

You need the full-size picture as a JPG or WebP

FluffyBench DDS converter

It turns a texture's full-size picture straight into a picture format you choose.

Your texture is a cube map or a stack of layers

FluffyBench Image Extractor

Its page shows where each tile names the face or layer its picture belongs to.

Search FluffyBench