ASTC Texture Decoder

Professional Adaptive Scalable Texture Compression Decoder

By 0xMe

Load from File

📁 Choose ASTC file or drag & drop here

Load from URL

Decoded Output

Ready to decode ASTC textures

File Information

Status: No file loaded
Dimensions: -
Block Size: -
File Size: -
Decoded Size: -
Compression Ratio: -

About ASTC Format

Adaptive Scalable Texture Compression (ASTC) is an advanced lossy texture compression technology developed by ARM. It provides excellent compression ratios and image quality across various block sizes.

// ASTC Header Structure (16 bytes)
// Bytes 0-3: Magic Number (0x13, 0xAB, 0xA1, 0x5C)
// Byte 4: Block Width
// Byte 5: Block Height
// Byte 6: Block Depth
// Bytes 7-9: Image Width (24-bit LE)
// Bytes 10-12: Image Height (24-bit LE)
// Bytes 13-15: Image Depth (24-bit LE)
                

API Usage

The decoder provides several ways to decode ASTC textures:

// Basic decoding
const decodedData = decodeASTCTexture(astcData);

// Class-based approach
const decoder = new ASTCDecoder();
await decoder.init();
const decodedData = decoder.decode(astcData);

// Parse header only
const header = parseASTCHeader(astcData);
                

Supported Block Sizes

ASTC supports various block sizes for different compression ratios:

  • 4x4, 5x4, 5x5, 6x5, 6x6
  • 8x5, 8x6, 8x8, 10x5, 10x6
  • 10x8, 10x10, 12x10, 12x12