# How to batch convert PVR to PNG with PVRTexToolCLI

**URL:** <https://forums.imgtec.com/t/how-to-batch-convert-pvr-to-png-with-pvrtextoolcli/3688>\
**Category:** Uncategorized\
**Tags:** pvrtextool\
**Created:** [March 16, 2023, 1:07pm UTC](https://forums.imgtec.com/t/how-to-batch-convert-pvr-to-png-with-pvrtextoolcli/3688 "2023-03-16T13:07:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Connor](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Connor](https://forums.imgtec.com/u/Connor)\
**Post date:** [March 16, 2023, 1:07pm UTC](https://forums.imgtec.com/t/how-to-batch-convert-pvr-to-png-with-pvrtextoolcli/3688/1 "2023-03-16T13:07:34Z")

</div>

Hi, I use PVRTexToolCLI v5.3.0.0, I checked the PVRTexTool Command Line Documentation, and I used the following command to convert a single PVR:

PVRTexToolCLI -i D:\tex\_t\new\_01.pvr, -ics sRGB -noout -d

it works fine and correctly. But only one image can be converted at a time.  
If I have a whole folder of 100 PVR files, how do I convert them to PNG?  
I tried:

PVRTexToolCLI -i D:\tex\_t\*.pvr,

but it doesn’t work.  
Thank you!

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [March 17, 2023, 8:24am UTC](https://forums.imgtec.com/t/how-to-batch-convert-pvr-to-png-with-pvrtextoolcli/3688/2 "2023-03-17T08:24:38Z")

</div>

Hi, Connor.

The best approach is to do it in a batch file. Create a process.bat file with something like this:

```auto
@echo off
FOR %%i in (D:\tex_t\*.*) DO (
echo processing %%i
PVRTexToolCLI -i "%%i" -ics sRGB -noout -d
)
echo - All files processed -

```

and just run it form the console.

Regards.

Carlos.

---

<div class="post-metadata">

**Author:** ![Connor](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Connor](https://forums.imgtec.com/u/Connor)\
**Post date:** [March 18, 2023, 2:02am UTC](https://forums.imgtec.com/t/how-to-batch-convert-pvr-to-png-with-pvrtextoolcli/3688/3 "2023-03-18T02:02:10Z")

</div>

Hello, Carlos.

Thank you very much for your reply.  
I used the script you provided and it worked perfectly!

best wishes to you.

Connor.
