How can I convert all DDS files in a bunch of nested subfolders into TGA files?
07:52 06 Sep 2026

I have a folder which contains almost 4,000 DDS image files organized in 462 subfolders nested to various depths, and I want to convert all the DDS files into TGA files with the same filename (aside from the file extension, of course) and folder-structure.

I know I can convert an individual file using ImageMagick by right-clicking inside the folder containing that file, selecting "Open in Terminal" to open a command-line window, and entering a command like magick -format tga 1b711888.dds (which takes a file named "1b711888.dds" and creates a new file named "1b711888.tga"), but doing that individually for thousands of files would be extremely impractical. Is there a way to automate it?

I am on Windows 11 and installed ImageMagick-7.1.2-30-Q16-HDRI-x64-dll. I am open to using other free programs if there is a better option.

I have almost no experience with command-line tools, so beginner-friendly explanations would be appreciated. I did try searching for resources which explain how to do this, but the results I got didn't work and I don't know enough to figure out why.

image command-line imagemagick