🇮🇩 Bahasa Indonesia • 🇬🇧 English
Script PHP murni (native) dengan antarmuka web yang rapi (Tailwind CSS) untuk mengubah nama file secara massal di server lokal (localhost). Alat ini sangat berguna untuk menyesuaikan nama file dokumen atau sertifikat hasil generate otomatis secara cepat menggunakan teknik copy-paste langsung dari Excel atau Google Sheets.
Repository ini menyediakan 4 versi file tergantung pada kebutuhan dan preferensi bahasa Anda. Anda hanya perlu menjalankan salah satu dari file berikut di browser Anda:
| Nama File | Deskripsi | Cocok Untuk |
|---|---|---|
index.php |
Khusus PDF (Bahasa Indonesia). | Mengubah nama file sertifikat PDF. Lebih kaku dan aman agar tidak salah merename file lain. |
index-en.php |
Khusus PDF (English). | Sama dengan atas, namun antarmuka berbahasa Inggris. |
index-universal.php |
Universal (Bahasa Indonesia). | Mendukung semua jenis file (PDF, JPG, PNG, DOCX, dll). Dilengkapi menu dropdown untuk memfilter jenis ekstensi file. |
index-universal-en.php |
Universal (English). | Sama dengan versi universal, namun antarmuka berbahasa Inggris. |
- Bulk Paste (Ctrl+V): Mendukung paste daftar nama menurun langsung dari kolom Excel atau Google Sheets.
- Natural Sorting: Mendeteksi urutan angka pada file persis seperti algoritma Windows Explorer (1, 2, 3... 10, 11), sehingga urutan rename tidak akan meleset.
- Safe Rename: Menangkap error dan memberi notifikasi jika ada file yang gagal diubah karena sedang terbuka/dikunci oleh aplikasi lain (Adobe Reader, Browser, dll).
- Otomatisasi Ekstensi: Pengguna tidak perlu mengetik ekstensi (seperti
.pdfatau.jpg) pada nama baru, sistem akan mempertahankan format asli file secara otomatis.
- Web Server lokal seperti XAMPP, Laragon, atau WAMP.
- PHP versi 7.0 ke atas.
- Browser modern (Chrome, Firefox, Edge, Safari).
- Pastikan aplikasi XAMPP Anda sudah berjalan (Start pada modul Apache).
- Buat folder baru di dalam direktori root server lokal Anda, misalnya di
C:\xampp\htdocs\renamer. - Letakkan keempat file PHP dari repositori ini ke dalam folder tersebut.
- Buka browser dan akses alamat file yang Anda butuhkan (contoh:
http://localhost/renamer/index-universal.php).
- Buka Windows Explorer, cari folder fisik tempat file yang ingin diubah berada, lalu Copy path (salin alamat folder) tersebut.
- Paste path tersebut ke form aplikasi (jika Anda menggunakan versi Universal, pilih jenis file yang ingin ditampilkan).
- Klik tombol Deteksi.
- Siapkan daftar nama baru Anda (dari Excel, Google Sheets, atau Notepad).
- Blok dan Copy (Ctrl+C) seluruh daftar nama tersebut.
- Klik pada kolom Nama File Baru di baris paling atas pada tabel, lalu tekan Paste (Ctrl+V).
- Pastikan file yang akan diubah tidak sedang dibuka di aplikasi lain.
- Klik tombol hijau Ubah Sekarang untuk memproses.
A pure (native) PHP script with a clean web interface (Tailwind CSS) to rename files in bulk on a local server (localhost). This tool is highly useful for quickly matching automatically generated document or certificate filenames by copy-pasting data directly from Excel or Google Sheets.
This repository provides 4 file versions depending on your needs and language preferences. You only need to run one of the following files in your browser:
| File Name | Description | Best For |
|---|---|---|
index.php |
PDF Only (Indonesian). | Renaming PDF certificates. Stricter and safer to prevent accidental renaming of other files. |
index-en.php |
PDF Only (English). | Same as above, but with an English interface. |
index-universal.php |
Universal (Indonesian). | Supports all file types (PDF, JPG, PNG, DOCX, etc.). Includes a dropdown menu to filter file extensions. |
index-universal-en.php |
Universal (English). | Same as the universal version, but with an English interface. |
- Bulk Paste (Ctrl+V): Supports pasting a list of names vertically directly from Excel or Google Sheets columns.
- Natural Sorting: Detects the numerical order of files exactly like the Windows Explorer algorithm (1, 2, 3... 10, 11), preventing out-of-order file matching.
- Safe Rename: Captures errors and provides notifications if any files fail to change because they are currently open/locked by another application.
- Extension Automation: Users do not need to type the extension (like
.pdfor.jpg) for the new name; the system will automatically retain the original format of each file.
- Local Web Server such as XAMPP, Laragon, or WAMP.
- PHP version 7.0 or higher.
- Modern web browser (Chrome, Firefox, Edge, Safari).
- Ensure your XAMPP application is running (Start the Apache module).
- Create a new folder inside your local server's root directory, for example:
C:\xampp\htdocs\renamer. - Place the four PHP files from this repository into that folder.
- Open your browser and access the specific file you need (e.g.,
http://localhost/renamer/index-universal-en.php).
- Open Windows Explorer, find the folder where your files are located, then Copy the path of that folder.
- Paste the path into the application form (if using the Universal version, select the file type you want to display).
- Click the Detect button.
- Prepare your list of new names (from Excel, Google Sheets, or Notepad).
- Select and Copy (Ctrl+C) the entire list of names.
- Click on the New File Name field in the top row of the table, then press Paste (Ctrl+V).
- Ensure the files to be renamed are not open in other applications.
- Click the green Rename Now button to process.
Aplikasi ini bersifat open-source dan bebas digunakan atau dimodifikasi untuk keperluan apa pun.
This application is open-source and free to use or modify for any purpose.