Save clipboard contents (image or text) to a temp file and copy the file path back to clipboard.
npm install -g clip2fileOr clone and link locally:
git clone https://github.com/dbbuilder-org/clip2file.git
cd clip2file
npm linkclip2fileclip2file - Saving clipboard to file...
Type: image
Size: 245.3 KB
Path: /var/folders/xx/xxxx/T/clip_2025-12-26_00-48-56.png
Clipboard now contains the file path (paste with Cmd+V / Ctrl+V)
- Detects clipboard content type (image, text, or file list)
- Saves content to a temp file with timestamp:
clip_YYYY-MM-DD_HH-mm-ss.{png|txt} - Replaces clipboard contents with the file path
- You can now paste the path anywhere (Cmd+V / Ctrl+V)
| Platform | Image | Text | Requirements |
|---|---|---|---|
| macOS | Yes | Yes | None |
| Windows | Yes | Yes | PowerShell |
| Linux | Yes | Yes | xclip |
- Quickly save a screenshot to share the file path
- Convert clipboard content to a file for CLI tools
- Integrate with AI assistants that accept file paths
MIT