How to Copy a File Path on Mac (3 Fast Ways)
You need the full path to a file — for a Terminal command, a support ticket, a script, an upload field. Finder won't show it by default, but macOS has had a built-in copy-path feature for years; it's just hidden behind the Option key. Here are the three fastest ways to grab a path on Ventura, Sonoma, or Sequoia, plus the trick for going the other direction.
1. The hidden right-click option
- Right-click the file or folder in Finder.
- With the menu open, press and hold the Option key.
- Copy “filename” changes to Copy “filename” as Pathname. Click it.
The clipboard now holds the full POSIX path, like /Users/you/Documents/report.pdf. This works for any number of selected files at once — you get one path per line — and it's been in macOS since Mavericks, so it's dependable everywhere.
2. The keyboard shortcut
Even faster: select the file and press Option+Cmd+C. That's the same “copy as pathname” action bound to a key. Its sibling is worth knowing too — plain Cmd+C copies the file itself (for pasting a duplicate), while Option+Cmd+C copies only the text of its path. Nothing about the file changes in either case.
3. Drag the file into Terminal
If the reason you want the path is a Terminal command, skip the clipboard entirely. Type the command, then drag the file from Finder onto the Terminal window:
# type the command, then drag the file in after it
open -R # becomes:
open -R /Users/you/Downloads/My\ File.zip
Terminal inserts the full path with spaces and special characters escaped — which the clipboard methods don't do, and which is exactly what a shell needs. This also works in Open and Save dialogs in most apps: drag a file or folder onto the dialog and it jumps to that location.
Bonus: see the path all the time
If you find yourself copying paths daily, keep the path visible instead:
- Path bar: choose View → Show Path Bar. A breadcrumb trail appears at the bottom of every Finder window. Right-click any folder in it to copy or open that level.
- Get Info: press
Cmd+I— the Where line under General shows the enclosing folder, and you can select and copy its text.
Going the other way: jump to a path
Someone sent you a path? In Finder, press Shift+Cmd+G, paste, and hit Return — Finder jumps straight to it, hidden folders included. The pair of Option+Cmd+C and Shift+Cmd+G is the fastest way to hand exact file locations between people or between apps.
Copy the current window's path
Sometimes the path you want isn't a file's — it's the folder you're standing in. Two tricks:
- Cmd-click the window title. A menu drops down showing the full folder hierarchy; you can't copy from it directly, but clicking any level jumps there, and it's the fastest way to see where you actually are.
- Drag the proxy icon. Hover over the window's title until the small folder icon appears next to it, then drag that icon into Terminal — the window's own path is inserted, escaped and ready. The proxy icon behaves like the folder itself, so you can also drag it into an upload field or a Dock icon.
And if you only need the last selected file's path inside a shell script, Finder-to-Terminal dragging remains the zero-typo option.
Copy-as-pathname is one of dozens of features Apple ships but never surfaces. Mainspring collects 90+ of these hidden macOS settings as labelled, reversible one-click toggles.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Learn the companion trick
The Go to Folder box deserves its own five minutes — fuzzy autocomplete, path history, and shortcuts to hidden system folders. Read Go to Folder: the fastest way around Finder next.