Copy File Path Name Text Mac OS X Finder
In this article
To copy a file or folder's path as text in Mac OS X Finder, right-click (or Control-click) the item while holding the Option key and select Copy “filename” as Pathname. This copies the full POSIX path (e.g., /Users/name/Documents/report.pdf) to your clipboard, ready to paste anywhere.
Why You Need the Path as Text
Finder normally shows files as icons, not as text addresses. But many tasks require the actual path: you might need it for a Terminal command, to paste into an app that doesn’t support drag-and-drop, to share a precise location with a colleague, or to use in a script. The Finder’s built-in “Copy as Pathname” is the quickest way to get that text without typing it manually.
How to Copy a Path in Finder
There are two reliable methods built into macOS, plus a few workarounds.
Method 1: Option + Right-Click (Fastest)
- In Finder, locate the file or folder.
- Hold down the Option key on your keyboard.
- Right-click (or Control-click) the item.
- Choose Copy “item name” as Pathname from the context menu.
The path is now on your clipboard. Paste it with Command+V into any text field, Terminal, or document.
Method 2: Get Info
- Select the file or folder in Finder.
- Press Command+I to open the Get Info window.
- Look for the Where field – it shows the parent folder path.
- You can copy that text, but it won’t include the item’s own name. You’ll need to append the name manually.
This method is less convenient but works if you don’t want to use the Option key.
What Exactly Does “Copy as Pathname” Copy?
It copies the full, absolute POSIX path, which is the Unix-style path that starts from the root directory (/). For example:
/Users/john/Documents/Projects/website/index.html/Volumes/Backup/Photos/2023/vacation.jpg
Note that it does not include a trailing slash for folders, and it does not use the Windows-style backslashes or drive letters. It’s the format that Terminal and most command-line tools expect.
Common Problems and How to Fix Them
Users often hit a few snags:
- The “Copy as Pathname” option doesn’t appear. This happens if you forget to hold the Option key. The regular right-click menu shows “Copy” (which copies the file itself, not the path). Hold Option and right-click again.
- The path is too long or contains spaces. That’s fine – the clipboard holds the entire text. When using it in Terminal, you may need to quote it or escape spaces, but the copied text itself is correct.
- You need a path with a tilde (~). The “Copy as Pathname” gives the full path starting with
/Users/…. If you prefer~/Documents/…, you can manually replace/Users/yournamewith~. - You’re trying to copy a path from the desktop. The same method works – the path will include
/Users/yourname/Desktop/.
Alternatives for Getting a Path
If the built-in method isn’t enough, try these:
- Drag and drop into Terminal. Drag a file or folder onto a Terminal window – it will insert the full path automatically (with spaces escaped).
- Use the “Go to Folder” shortcut. Press Command+Shift+G in Finder, type a path, and press Enter. You can copy the path from there, but it’s not as direct.
- Use Finder’s status bar. If you enable “Show Path Bar” from the View menu, the bottom of the Finder window shows the current folder’s path. Right-click on any folder in that bar to copy its path.
- Third-party utilities. Apps like Path Finder or services like “Copy Path” can add this to the right-click menu permanently, but the built-in Option+right-click is usually sufficient.
Copying Paths in Older macOS Versions
The Option+right-click trick has been available for many years, including macOS 10.4 Tiger through the latest macOS Sonoma. In very old versions (pre-10.4), you had to use the “Show Info” window or Terminal. The menu wording may vary slightly: older versions might say “Copy as Pathname” while newer ones say “Copy “filename” as Pathname.” The function is identical.
Frequently Asked Questions
Does “Copy as Pathname” copy the file itself or just the text?
It copies only the text path. It does not copy the file’s contents or create a duplicate. You’re just copying a string of characters that represents the file’s location.
Can I copy a path for a file on an external drive?
Yes. The path will start with /Volumes/DriveName/… instead of /Users/…. The same Option+right-click method works.
Why would I want a path instead of just dragging the file?
Some apps don’t accept drag-and-drop, or you might need the path in a script or configuration file. Also, if you’re sending instructions to someone, a text path is easier to read than a screenshot.
Is there a keyboard shortcut to copy a path?
There is no single-key shortcut by default. You must right-click and select the option. You can create a custom shortcut in System Settings > Keyboard > Shortcuts > App Shortcuts, but it’s often faster to just use the mouse.
Can I copy multiple file paths at once?
Yes. Select multiple files in Finder, hold Option, and right-click. The menu will say “Copy 3 Items as Pathnames” (or similar). It copies each path on a separate line.
Does this work in macOS Ventura and Sonoma?
Yes, it works in all current versions of macOS, including Ventura and Sonoma. The method has remained unchanged for years.