This Python script renames all files in a specified folder by adding a random two-digit number to the end of each filename while preserving the file extension.
✅ Renames all files in a folder
✅ Adds a random two-digit number (00–99) to the filename
✅ Preserves file extensions
✅ Simple and easy to use
- Make sure you have Python installed on your system.
- Clone this repository or download
rename_files.py
manually.
git clone https://github.com/KhaiShea/Random-File-Renamer.git
cd Random-File-Renamer
- Open a terminal (
cmd
or PowerShell). - Navigate to the folder containing
rename_files.py
. - Run the script with:
python rename_files.py
- Enter the folder path when prompted.
Before running the script:
document.txt
photo.jpg
After running the script:
document_23.txt
photo_87.jpg
- This script only renames files (not folders).
- Ensure you have backup copies if needed, as renaming is irreversible.
This project is licensed under the AGPL-3.0 License.