The fastest way to copy a file path on Mac
To copy a file path on Mac, right-click the file, hold down the Option key, and select "Copy as Pathname" from the menu. This puts the full path into your clipboard so you can paste it anywhere — into a document, an email, a terminal window, or a support ticket. The Option key is what makes this menu item appear; without it, you will only see the standard copy option.
If you do not see "Copy as Pathname" even with Option held down, your Mac is running an older version of macOS. The workaround is to drag the file into a terminal window, which automatically pastes its path, then copy from there. Both methods take about five seconds.
Key Takeaways
- Right-click any file, hold Option, and click "Copy as Pathname" to copy its full path to your clipboard.
- The Option key is required — without it, the "Copy as Pathname" option will not appear in the menu.
- If your Mac does not have this option, drag the file into a terminal window to see its path, then copy it manually.
- A file path shows the exact location of a file on your computer, starting from the root and listing every folder it sits inside.
- Once copied, you can paste the path into any program, document, or terminal command that needs to know where a file is located.
Why you need a file path
A file path is the address of a file on your computer. It starts at the root of your drive and lists every folder the file sits inside, in order. For example, a path might look like /Users/yourname/Documents/ProjectFolder/report.pdf. Each forward slash represents a folder level.
You need a file path when you are troubleshooting with technical support, running a command in Terminal, sharing exact file locations with colleagues, or writing instructions for someone else to find a specific file. Paths are also useful when you need to reference a file in a script or a program that requires the full location rather than just the filename.
Using Option + right-click on newer Macs
On macOS Monterey and later, the "Copy as Pathname" option is built into the right-click menu. Find the file you want, right-click it, and look at the menu that appears. You will see several options like "Open", "Move to Trash", and "Get Info". Now hold down the Option key on your keyboard while the menu is still open.
The menu will change. You will now see "Copy as Pathname" appear where "Copy" used to be. Click it. The full path is now in your clipboard. You can paste it immediately into a document, email, or terminal window by pressing Command+V.
This works on files, folders, and aliases. The path you get is always the actual location, even if you are looking at an alias or a shortcut.
Dragging a file into Terminal if the menu option is missing
If you have an older Mac or the "Copy as Pathname" option does not appear, you can use Terminal to see the path. Open Terminal (search for it in Spotlight by pressing Command+Space, typing "Terminal", and pressing Enter). You will see a window with a command prompt.
Now find the file you want in Finder. Drag it directly into the Terminal window. Terminal will automatically type out the full path to that file. You can then select all the text (Command+A), copy it (Command+C), and paste it wherever you need it.
This method is slower than the right-click option, but it works on any Mac running macOS, regardless of version. The path appears exactly as Terminal sees it, which is useful if you are about to run a command anyway.
Copying paths for folders, not just files
The "Copy as Pathname" method works exactly the same way for folders as it does for files. Right-click the folder, hold Option, and select "Copy as Pathname". You get the path to that folder, which you can then paste into any program or document that needs to know where it is.
This is useful when you need to share the location of a project folder with someone else, or when a program is asking you to specify a folder location. Some programs will accept a pasted path instead of making you navigate through a file browser.
What to do if the path does not work when you paste it
If you paste a path into a program and it says the file or folder cannot be found, the most common reason is that the file has been moved or deleted since you copied the path. Check that the file still exists in the location shown by the path.
Another reason is that some programs expect paths in a different format. Terminal and Unix-based programs use forward slashes (like /Users/name/file.txt), while some older Mac programs might expect colons. If you are pasting into a program and it rejects the path, try copying it again using the Terminal method instead, or contact the program's support to ask what format it needs.
If you are sharing a path with someone else, remember that their username will be different from yours. A path like /Users/yourname/Documents/file.txt will not work on their computer. Instead, share the path starting from a shared location like the Desktop or Documents folder, or use a relative path that does not include the username.
Frequently Asked Questions
Can I copy a path for a file that is inside a compressed folder?
You can copy the path to the compressed folder itself, but not to files inside it until you decompress it. If you need the path to a specific file, extract the compressed folder first, then copy the path to the file inside.
What is the difference between a relative path and an absolute path?
An absolute path starts from the root of your drive and includes every folder, like /Users/yourname/Documents/file.txt. A relative path is shorter and starts from wherever you are currently working, like Documents/file.txt. The "Copy as Pathname" option gives you the absolute path. Terminal and some programming tools use relative paths.
Why does the path have tilde (~) in it sometimes?
The tilde is a shortcut that represents your home folder. A path like ~/Documents/file.txt means the same thing as /Users/yourname/Documents/file.txt. Both work in Terminal and most programs. The "Copy as Pathname" option usually gives you the full path without the tilde, but Terminal sometimes shows it with one.
Can I copy a path for a file on an external drive?
Yes. The path will include the name of the external drive as part of the location, like /Volumes/ExternalDriveName/folder/file.txt. This path only works when that external drive is connected to your Mac. If you disconnect it, the path will no longer point to anything.
Does copying a path also copy the file itself?
No. Copying a path only copies the text address of the file, not the file itself. The file stays where it is. If you want to move or copy the actual file, you need to use Finder's copy and paste commands, not the path copy option.