Google Drive Bulk File Renamer by Pattern
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Google Drive Bulk File Renamer by Pattern solves a common file management challenge: renaming multiple files in Google Drive is tedious when done one at a time. While Google Drive allows renaming individual files, there is no native way to apply a consistent naming pattern to many files simultaneously. This tool reads your current Google Drive view (My Drive, Shared with me, or any folder), detects all visible files and folders, and displays them in a scrollable checklist with names, types, and modification dates. You define a rename pattern using placeholders like {original} (original name), {counter} (incremental number), {date} (current date), {ext} (file extension), {name} (name without extension), {date_modified} (file modification date), and {random} (random string). A live preview shows the old vs. new names side-by-side before you apply. The tool processes each selected file sequentially through Google Drive's API, updating the file name.
WHERE IT RUNS
This extension panel runs directly inside your browser as an overlay on any Google Drive view. It works on My Drive, Shared with me, Team Drives, and any folder view. The tool detects files from the page's DOM and uses Google Drive's official API (via GM_xmlhttpRequest) for rename operations. It requires no additional API keys beyond your existing authenticated session — the tool extracts your access token from the page.
HOW TO USE
After installing the BotGentz extension and activating Google Drive Bulk File Renamer by Pattern, navigate to any Google Drive folder view. Click the extension icon in your browser toolbar to open the panel. The tool automatically detects all files and folders displayed in the current view. Each item appears with a checkbox alongside its name. Use the "Select All" toggle or individually check items. Next, enter your rename pattern in the text field. For example, "Project_2024_{original}" adds a prefix to the original name, "prefix_{counter}_{name}" adds a counter and prefix, and "{date}_{name}" adds the current date. The preview section shows a side-by-side comparison of original and new names for your selected files. Adjust the starting counter value if your pattern uses {counter}. Finally, click "Apply Rename." A confirmation dialog appears before the operation begins. The tool processes each file with a 500ms delay, showing progress as each file is renamed. A notification appears when all files have been processed.
TECHNICAL OPERATION — Pattern-Based Renaming with API Updates
This tool combines DOM-based file detection with API-based rename operations for reliability. It first scans the page for file elements using selectors like `[data-file-id]`, `.file-item`, and `[role="row"]`, extracting file IDs, names, and extension information. The pattern engine supports multiple placeholders: {original} for the full original name, {name} for the name without extension, {ext} for the file extension, {counter} for an incrementing number (starting from a user-defined value), {date} for the current date in YYYY-MM-DD format, {date_modified} for the file's modification date, and {random} for a random 6-character string. The tool generates the new name by replacing placeholders with their corresponding values, then constructs a PATCH request to Google Drive's `/files/{fileId}` endpoint with a payload containing the new name. Authentication is handled by extracting the user's access token from the page's scripts, meta tags, or cookies, and including it in the Authorization header. The API approach ensures that renames are reliable and independent of Google Drive's UI structure, while the preview feature allows users to verify changes before applying.
THE PANEL
The extension panel is fully draggable and remembers its position per site session. It snaps to the nearest edge of the browser viewport when dragged within 50 pixels of any side. You can collapse the panel to a compact title bar using the minimize button, preserving your selection state. The panel resizes vertically by dragging the bottom edge. Press the Escape key to close the panel instantly without losing your file selection. The preview updates in real-time as you modify the pattern, showing a side-by-side comparison for the first 10 selected files.
PLEASE NOTE
This tool requires the free BotGentz extension to function. The script uses Google Drive's API and requires your session to be authenticated. It does not store, transmit, or log any file data, names, or pattern information. All API requests are made locally from your browser session. Google Drive's API has rate limits; the tool uses a 500ms delay between renames to avoid rate limiting. The tool relies on extracting your access token from the page, which may expire if your session times out. Google Drive may update its DOM structure over time, which could affect file detection; we monitor and release compatibility updates as needed. Always review the preview and confirmation dialog before applying changes, as renaming files can affect links and references to those files.