MainspringGuides › Copy file path
macOS Guide

How to Copy a File Path on Mac (3 Fast Ways)

Updated July 2026 · 3 min read

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

  1. Right-click the file or folder in Finder.
  2. With the menu open, press and hold the Option key.
  3. 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:

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:

And if you only need the last selected file's path inside a shell script, Finder-to-Terminal dragging remains the zero-typo option.

Finder has more hidden depth

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.