Updated
How to Copy the Contents of a File to the Clipboard on Mac
By Sindre Sorhus, who makes the Supercharge app
With Supercharge
- Open the settings of Supercharge, click “Tweaks”, and click “Configure…” next to “Context menu items”.
- In the “Main Menu” tab, turn on “Copy Contents”.
- Right-click a text file in Finder, like a
.txt,.md,.json, or.logfile, or a script, and choose “Copy Contents”. - Paste the text where you need it.
The item shows only for text files, not for documents like PDF or Pages files.
The right-click items cannot show in synced folders, like iCloud Drive and Dropbox. There, right-click the file, and choose
Get Supercharge
Elevate your Mac experience
$20, one-time purchase, plus tax where applicable
- Requires
- macOS 27 or later
- Privacy
- No personal data collected
- License
- All your Macs
- Updated
- November 2026
- Gumroad rating
- 5.0/5 (288 ratings)
Without an app
Open the file in TextEdit, press CommandA to select all the text, and press CommandC.
Or use the pbcopy command in Terminal. Replace the path with your file, or drag the file into the window:
pbcopy < ~/Desktop/notes.txt
The built-in ways are fine for a file now and then. Supercharge copies the text with one click, without opening the file.
