A desktop viewer for KTX2 textures. It opens any .ktx2 the material pipeline
makes and shows what is inside: the header, the format, the levels and the
metadata; every layer, face and mip level; each channel on its own, named from
the file's three.layers entry; a 3×3 tile to check seams; a lit preview of a
packed material; and the difference against another file.
The newest release, for each platform:
- Linux: ktxview-x86_64.AppImage, then
chmod +xand run it - Windows: ktxview-windows-x64.zip, a portable folder; run
ktxview.exe - macOS 26+ on Apple Silicon: ktxview-macos-arm64.dmg. It is not notarized, so open it the first time with right-click › Open.
git submodule update --init # cui, vulkan, window, image, font and ktx in libs/
c3c build # build/ktxview
c3c test --test-noleakbuild/ktxview material.ktx2
build/ktxview --layer 1 --channel a material.ktx2
build/ktxview --view overview material.ktx2
build/ktxview --compare reference.png texture.ktx2
build/ktxview --view lit --screenshot lit.png material.ktx2 # render, save, quitFiles also open from File › Open (Ctrl+O), Recent, and by dropping one
on the window (Wayland only). The recent list is kept in
~/.config/ktxview/recent.
Options: --layer n, --face n, --level n, --channel rgb|rgba|r|g|b|a,
--view image|overview|lit|diff, --tile, --compare file, --size WxH,
--screenshot out.png.
| Key | Does |
|---|---|
| Ctrl+O | Open a file |
| Ctrl+D | Compare with a .ktx2 or .png |
| Ctrl+Q | Quit |
[ ] |
Previous / next layer |
Shift+[ Shift+] |
Previous / next cubemap face |
, . |
Larger / smaller mip level |
| C | Colour; again for colour with alpha |
| R G B A | One channel, as grey |
| T | Tile 3×3 |
| O | Overview |
| I | Back to the image |
| M | Lit material |
| D | Difference |
| F | Frame the image |
| 1 | Actual size |
| L + drag | Move the light (lit view) |
ASTC, ETC2, BC6H and float formats open and show their info, but the canvas says it can't decode them yet.
Apache-2.0, see LICENSE. The bundled DejaVu Sans font keeps its own license,
in assets/DejaVuSans-LICENSE.