Skip to content

KhaiShea/Random-File-Renamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Random File Renamer for Windows 11

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.

Features

✅ 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

Installation

  1. Make sure you have Python installed on your system.
  2. Clone this repository or download rename_files.py manually.
git clone https://github.com/KhaiShea/Random-File-Renamer.git
cd Random-File-Renamer

Usage

  1. Open a terminal (cmd or PowerShell).
  2. Navigate to the folder containing rename_files.py.
  3. Run the script with:
python rename_files.py
  1. Enter the folder path when prompted.

Example

Before running the script:

document.txt
photo.jpg

After running the script:

document_23.txt
photo_87.jpg

Notes

  • This script only renames files (not folders).
  • Ensure you have backup copies if needed, as renaming is irreversible.

License

This project is licensed under the AGPL-3.0 License.