Rename image files in the current directory with a sequential, zero-padded index and a customizable prefix. It supports .jpg, .png, and .webp formats, ensures lowercase file extensions, and prevents overwriting existing files by checking for filename collisions.
- Sequential renaming with two-digit zero-padding (e.g.,
lr-demo-img-01.jpg) - Supports
.jpg,.png,.webpfile types - Automatically converts extensions to lowercase
- Avoids overwriting by skipping used filenames
- Simple and efficient—no dependencies required
- Place the script in the folder containing the images.
- Open PowerShell and navigate to the folder.
- Run the script:
.\sequential-image-renamer.ps1