FLXCode PNG to DDS Converter

FLXCode apps

Appearance

PNG to DDS Converter

Turn PNG textures into DDS files for games and mods. Pick the format, add mipmaps if you need them. Your files stay on your device.

or drop them here, or paste with Ctrl+V

HEIC, WebP, AVIF, PNG, JPG, GIF and BMP. Up to 50 files and 500 MB at a time. Nothing is uploaded.

Convert to
Format
#FFFFFF

Works offline: load this page, convert one file, turn off Wi-Fi, convert more. Location and camera data are removed from the converted files.

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.

Problem or idea? Email us

Quick start

  1. Add the PNG files.
  2. Pick BC3 for pictures with see-through parts, BC1 for solid ones, RGBA8 if no loss is allowed. Tick Mipmaps if your engine wants them.
  3. Save the .dds files or the zip. The list warns when a side is not a power of two.

Offline use: convert one file, then turn off Wi-Fi.

Which DDS format to pick

DDS is the texture file of DirectX. It holds the main image and, if you ask for them, every half-size copy below it (mipmaps), each as plain pixels or in a block-compressed format.

RGBA8 keeps 4 bytes per pixel and loses nothing. BC1 (DXT1) stores each 4 × 4 block of 16 pixels in 8 bytes, one eighth of RGBA8. BC3 (DXT5) uses 16 bytes per block, one quarter, and keeps a full alpha channel. Both are lossy: a block is reduced to two colours plus a 2-bit step between them.

The block encoder on this page is a small range fit. It is fast, and its quality is below dedicated texture tools. On a smooth 64 × 48 test gradient, the decoded pixels were within 10 of 255 of the source, 3 on average. A block with hard edges between three colours does worse.

What changes in the file

  • Rows are written top first, with straight (not premultiplied) alpha. In BC1 a pixel under 50% alpha becomes fully clear and the rest fully solid.
  • Mipmaps use a 2 × 2 box filter, weighted by alpha so clear pixels don't tint the edge, down to 1 × 1.
  • A side that is not a multiple of 4 is padded in the last blocks by repeating the edge pixels. The name stays: wall.png becomes wall.dds.

How big the files are

A 256 × 256 picture in each format. The sizes include the 128 byte header, and they depend only on the width, height and format, not on what the picture shows.

FormatNo mipmaps (bytes)With mipmaps (bytes)Levels
RGBA8262,272349,6529
BC3 (DXT5)65,66487,5369
BC1 (DXT1)32,89643,8329

Each level is max(1, (width + 3) / 4) by max(1, (height + 3) / 4) blocks. A 256 × 64 BC1 picture with mipmaps gives 256 × 64: 8192, 128 × 32: 2048, 64 × 16: 512, 32 × 8: 128, 16 × 4: 32, 8 × 2: 16, 4 × 1: 8, 2 × 1: 8, 1 × 1: 8.

Limits

  • Pictures above 16.7 megapixels (4096 × 4096) are scaled down, on every device, because the encoder runs in the page.
  • The classic DDS header only: no BC4 to BC7, no DX10 extension, no cube maps. Microsoft recommends this header for RGB and DXT1 to 5 data because not all DDS tools read the extension.

How it works and privacy

Your browser opens the PNG and draws it on a canvas. The page reads the pixels, builds the mipmaps if asked, encodes the blocks and writes the 128 byte header and the levels itself. Nothing is uploaded or stored. A finished batch counts one event, "png>dds", and never a file name or size (details).

Zip files are made with fflate. Licences: Open source used on this site.

FAQ

Which format should I use for game textures?

BC1 for solid pictures, BC3 when the alpha matters, RGBA8 when no loss is allowed and the size is fine. Check what your game or tool reads, because some older tools open only some formats.

Why is the DDS bigger than my PNG?

A PNG is compressed without loss and often beats RGBA8 DDS, which is raw pixels. BC1 and BC3 files are always the same size for a given width, height and mipmap setting, whatever the picture shows. A PNG changes with the content.

What are mipmaps?

Half-size copies of the picture, down to 1 × 1, stored in the same file so a game can use a small one when the surface is far away. They add about a third to the size.

Do I need power-of-two sizes?

Some engines and older graphics hardware do. The list warns about a side that is not a power of two and still writes your size. Resize the PNG first with the image resizer if you need 256 or 512.

Why do my gradients look banded in BC1?

BC1 keeps only two 5:6:5 colours per block, so a 4 × 4 block holds four shades at most. Smooth gradients show steps, and BC3 has the same colour limit. RGBA8 has none.

More from FLXCode

  • PNG to WebP ConverterConvert PNG images to WebP in your browser. Quality or lossless, transparency kept. No upload, batch and zip.
  • Image ResizerResize photos by pixels, percent or preset for Instagram and email. Batch and zip. Nothing is uploaded.
  • PNG to JPG ConverterConvert PNG images to smaller JPG files in your browser. Choose the quality. Nothing is uploaded.
  • Compress ImageCompress JPG, PNG and WebP by quality or target KB, with a side-by-side preview. Nothing is uploaded.

Share PNG to DDS Converter