How to Copy a File Path on Mac (Plus the Windows Shortcut)
How to copy a file path on Mac in one shortcut, from Finder, the path bar or Terminal, plus the Windows equivalent and how to stop retyping paths you reuse.

You need the location of a file. Maybe it's for a Terminal command, a config file, a bug report, or a teammate asking "where did you save that?" You select it in Finder, press ⌘C, paste, and get… just the file name. If you've ever wondered how to copy a file path on Mac without clicking through folders and typing it out, the answer is one shortcut that Apple keeps well hidden.
Here are all the ways to do it, which one to use when, and how to stop copying the same paths over and over.
The Fastest Way: ⌥⌘C in Finder
This is the one to memorize.
- Select the file or folder in Finder.
- Press ⌥⌘C (Option + Command + C).
That's it. The full path, like /Users/you/Projects/site/index.html, is now on your clipboard as plain text. Paste it anywhere.
The reason almost nobody knows this: the menu item is invisible until you hold Option. Open Finder's Edit menu, hold Option, and you'll see Copy "filename" as Pathname appear where "Copy" used to be.
From the Right-Click Menu
If you prefer the mouse:
- Right-click (or Control-click) the file in Finder.
- Hold Option.
- Choose Copy "filename" as Pathname.
Same result as the shortcut. Without Option held, you'll only see the regular Copy command, which copies the file itself, not its location.
Using the Finder Path Bar
The path bar is handy when you want the path of a folder you're currently inside, not a specific file.
- Turn it on with View → Show Path Bar (or ⌥⌘P). It appears at the bottom of every Finder window.
- Right-click any folder in the path bar and choose Copy "folder" as Pathname.
- You can also drag a folder from the path bar straight into another app or a Terminal window.
Leaving the path bar on permanently is a small change that makes "where am I?" questions disappear.
From Terminal
If you already live in Terminal, you have a few options:
- Drag and drop. Drag any file from Finder into a Terminal window and its full path is typed for you, with spaces already escaped. This is the most reliable way to get a path into a command.
- Copy the current folder. Run
pwd | pbcopyto put the folder you're in onto the clipboard.pbcopysends any command's output to the macOS clipboard, which is useful far beyond paths. - Paste a path to jump there. In Finder, press ⇧⌘G (Go to Folder), paste a path, and hit Return to open that location.
One gotcha: paths copied with ⌥⌘C aren't escaped. If a folder name has spaces, like /Users/you/Client Work/brief.pdf, wrap the path in quotes before using it in Terminal: open "/Users/you/Client Work/brief.pdf".
How to Copy a File Path on Windows
If you switch between machines, Windows has the same feature with different keys:
- Windows 11: select the file in File Explorer and press Ctrl + Shift + C, or right-click it and choose Copy as path.
- Windows 10: hold Shift, right-click the file, and choose Copy as path. The Home tab of the File Explorer ribbon also has a Copy path button.
Windows wraps the path in double quotes, like "C:\Users\you\Documents\report.docx". That's convenient for the command line, but remember to strip the quotes if you're pasting into a field that doesn't expect them.
Which Method Should You Use?
A quick cheat sheet:
- Need a file's path right now: ⌥⌘C in Finder.
- Need the folder you're browsing: right-click it in the path bar.
- Building a Terminal command: drag the file into the window.
- Scripting or already in the shell:
pwd | pbcopy. - On a Windows PC: Ctrl + Shift + C in File Explorer.
The Real Problem: You Copy the Same Paths Every Day
Once you know the shortcut, a new annoyance shows up. You copy a path, then copy a snippet of code, then an error message, and the path is gone. So you go back to Finder and do it again. For developers, designers and anyone juggling project folders, the same handful of locations get copied dozens of times a week:
- The project root you
cdinto every morning - The shared drive folder where final assets live
- A log file you keep checking while debugging
- The export folder you paste into every "Save As" dialog
macOS 26 Tahoe helps a little here. Spotlight now keeps a short clipboard history (press ⌘Space, then ⌘4), so a path you copied a few minutes ago is still reachable. But those items expire after roughly eight hours, stay on your Mac only, and can't be organized. The path you'll need again next Monday won't be there.
This is exactly what a clipboard manager is for. With Copaste, every path you copy lands in a searchable history alongside your text, images and files. A few habits that pay off quickly:
- Pin your everyday paths. Keep the project root, the assets folder and the log file one keystroke away instead of re-copying them from Finder. Pinning the things you paste every day takes seconds to set up.
- Search instead of navigating. Type part of a folder name, like
clientorlogs, and the full path comes back. - Keep it on both sides. The Chrome extension means a path copied on your desktop is ready to paste into a web-based ticket, doc or chat.
If paths are a big part of your day, you'll probably like the rest of the clipboard setup every developer should have too.
Quick Recap
- ⌥⌘C in Finder copies a file's full path as text.
- Hold Option in the Edit or right-click menu to reveal Copy as Pathname.
- The path bar (⌥⌘P) lets you copy any parent folder's path.
- Drag a file into Terminal for an escaped, ready-to-use path.
- On Windows, Ctrl + Shift + C in File Explorer does the same job.
Learn the shortcut once and you'll never type out /Users/… by hand again. Add a clipboard manager, and you'll never have to copy the same path twice.
Stop losing what you copy.
Copaste remembers everything — texts, images, files, passwords. Local-only, keyboard-first, always instant.