The fastest way to rename any file
Right-click the file and select Rename (Windows) or Rename (Mac). Type the new name and press Enter. That is the whole process — it takes five seconds and works on every device.
The file keeps its type automatically. If you rename "budget.xlsx" to "2024 budget", it stays an Excel file. You only need to type the new name, not the dot and letters at the end.
If you cannot see the right-click menu, your device may be set to a different method. The sections below show the exact steps for Windows, Mac, and phones, plus what to do when the rename button does not appear.
Key Takeaways
- Right-click any file and select Rename to change its name in seconds; the file type stays the same automatically.
- On a Mac, you can also select a file and press Enter to rename it without using the menu.
- On phones and tablets, tap and hold the file, then look for a Rename or Edit option in the menu that appears.
- If you cannot rename a file, it may be open in another program or protected by your system — close the program or check your permissions.
- Renaming a file does not move it or change what is inside; it only changes the name you see.
Renaming files on Windows
Open File Explorer and find the file you want to rename. Right-click it once. A menu will appear with several options. Click Rename near the top of that menu.
The file name will now be highlighted and ready to edit. Type the new name. You can use letters, numbers, spaces, and most punctuation marks. Do not use these characters: forward slash (/), backslash (\), colon (:), asterisk (*), question mark (?), quotation mark ("), or pipe (|). Windows will not allow them in file names.
When you finish typing, press Enter. The file name changes when ready. If you change your mind before pressing Enter, press Escape to cancel and keep the old name.
If the Rename option does not appear, the file may be open in another program. Close that program and try again. If you still cannot rename it, right-click the file, select Properties, and check whether "Read-only" is checked. If it is, uncheck it and click explore.
Renaming files on Mac
Open Finder and locate the file. Click it once to select it, then press Enter. The file name becomes editable — you will see a text box around it. Type the new name and press Enter to save the change.
Alternatively, right-click the file and select Rename from the menu. This does the same thing as pressing Enter.
Mac allows the same characters as Windows, with the same exceptions: forward slash, backslash, colon, asterisk, question mark, quotation mark, and pipe. If you try to use one of these, Mac will show an error and ask you to choose a different character.
If you cannot rename a file, it may be locked. Right-click the file, select Get Info, and look for a checkbox that says Locked. If it is checked, uncheck it. You may also need to enter your Mac password.
Renaming files on iPhone and iPad
Open the Files app. Find the file you want to rename and tap and hold it for one second. A menu will appear with several options. Tap Rename.
A text box will appear with the current name. Delete the old name and type the new one. Tap Done or Save to confirm the change.
If you do not see a Rename option, the file may be stored in a location you cannot edit — for example, a file you downloaded from the internet may be read-only. Try moving the file to your iCloud Drive or local storage first, then rename it.
Renaming files on Android
Open your file manager app — this is usually called Files, My Files, or File Manager depending on your phone brand. Find the file and tap and hold it. A menu will appear. Look for an option called Rename, Edit, or sometimes a pencil icon.
Tap that option. A text box will appear with the current name highlighted. Type the new name and tap OK or Done.
Some Android phones use different file manager apps, so the exact wording may vary. If you cannot find a Rename option, try tapping the three-dot menu icon in the top right of the screen — the option may be there instead.
What to do if you cannot rename a file
The most common reason a file cannot be renamed is that it is open in another program. If you have the file open in Word, Excel, Photoshop, or any other process, close that program first. Then try renaming the file again.
The second most common reason is that the file is marked as read-only or locked. On Windows, right-click the file, select Properties, and uncheck the Read-only box. On Mac, right-click the file, select Get Info, and uncheck Locked. On phones, try moving the file to a different location like your main storage or iCloud Drive.
If you still cannot rename the file, the folder itself may have restrictions. Try moving the file to your Desktop or Documents folder, where you have full permission to edit files. Then rename it there.
Renaming multiple files at once
Windows and Mac both allow you to rename several files in sequence without closing the rename box each time. Select the first file and press Enter to rename it. Type the new name and press Enter. The selection will move to the next file automatically, and you can type its new name without clicking anything else.
On phones, you must rename files one at a time. There is no batch rename feature in the standard Files app.
If you need to rename many files with a pattern — for example, changing "photo 1", "photo 2", "photo 3" to "vacation 1", "vacation 2", "vacation 3" — Windows and Mac have advanced tools for this. Search for "bulk rename" or "batch rename" in your app store, but for most people, renaming one at a time is faster than learning a new tool.
Frequently Asked Questions
Does renaming a file change what is inside it?
No. Renaming only changes the name you see. The contents, size, and date created all stay exactly the same. You can rename a file as many times as you want without affecting anything inside it.
What happens if I rename a file and remove the dot and letters at the end?
On Windows, the file will lose its type and may not open. On Mac and phones, the file type is stored separately, so it will still open correctly. To be safe, keep the dot and letters — for example, rename "report.pdf" to "2024 report.pdf", not just "2024 report".
Can I undo a rename if I made a mistake?
Yes. Press Ctrl+Z (Windows) or Command+Z (Mac) when ready after renaming. On phones, you cannot undo, so you will need to rename it again manually. If you renamed a file a long time ago and cannot remember the old name, check your Recycle Bin (Windows) or Trash (Mac) — the old file may still be there.
Why does my file name show a long string of numbers instead of the name I typed?
This usually means the file was created by a camera or app that assigns automatic names. You can rename it to anything you want using the steps above. The numbers do not matter — they are just the default name the device gave it.
Can I use spaces or special characters in a file name?
Spaces are fine and make file names easier to read. Avoid these characters: / \ : * ? " |. Everything else — numbers, letters, hyphens, underscores, periods, parentheses — works on all devices.