Paste clipboard data into files and copy file contents directly via hotkey or context menu
Paste Into File is a utility designed to simplify file operations by enabling users to paste clipboard content directly into files or copy file contents to the clipboard via hotkeys or context menu entries.
Key Features:
Context menu integration: "Paste into file," "Paste into this file (Append/Replace)," and "Copy file contents."
Hotkey support: WIN+ALT+V for pasting and WIN+ALT+C for copying file contents.
Autosave mode: Rename files directly in the file explorer without a dialog.
Batch processing: Monitor the clipboard and automatically save or append content as you copy.
Clipboard patching: Use regular paste options (including CTRL+V) to paste clipboard content.
Support for multiple formats: PNG, JPEG, GIF, SVG, TXT, HTML, CSV, URL, PDF, RTF, DIF, SLK, EMF, TIF, ZIP, and more.
Audience & Benefit:
Ideal for users who frequently work with files in Windows, such as content creators, office workers, or developers. It streamlines workflows by eliminating the need to open additional applications when pasting images, text, or other clipboard content into files. The tool saves time by allowing direct file operations from the context menu or keyboard shortcuts, preserving formats like transparency and animations.
Paste Into File can be installed via winget for easy setup on Windows 10 and 11 systems.
README
Paste Into File
About
Are you tired of opening an image/text/office/archive application, paste what you just copied, hit save, select the folder manually and type the filename, just to realise your transparent GIF became a static JPEG with black background?
Paste Into File helps you do all this in a single step, preserving transparency and animations.
With Paste Into File you paste clipboard contents directly into files via file explorer context menu and/or keyboard shortcut, and likewise copy file contents to the clipboard without opening the file.
It can also monitor the clipboard and automatically save or append content in a file/folder/zip as you copy things (batch processing).
Note: On Windows 11, the context menu entries are located in the extended menu ("show more options"). Use Shift + right click to access it directly; or enable autostart and use keyboard shotcuts.
This fork comes with many new features: autosave, batch mode, more formats, keyboard shortcuts, a new fluid GUI and new console options.
The full changelog can be found on the release page.
See the contributors page for details on collaborators.
Tested on Windows 10 and 11.If you are running an older Windows version make sure the .NET Framework 4.8+ is installed.If the Microsoft Defender SmartScreen prompt appears read this.
Usage
When starting Paste Into File for the first time or after an update, the first launch wizard will guide through the configuration of context menu entry, hotkey, etc.
In addition to the instructions given below, help is also available via GitHub discussions.
Paste clipboard contents
This is the main mode of Paste Into File which allows saving clipboard contents directly into files.
To use this mode, run the program from the file explorer context menu, with the hotkey WIN+ALT+V (if enabled), from the tray (if enabled), from the start menu or via command line.
If clipboard patching is enabled, the regular paste command and CTRL+V hotkey can also be used.
The file explorer context menu is accessed with a right click on a folder or the file explorer background (for windows 11 it is in the extended context menu ("more options" or SHIFT + right click).
The context menu of existing files allows to replace or append into existing files, preserving filename and file type without showing the dialog.
In the case of replace, the old file is moved to the recycle bin and can be restored with the usual undo options of the file explorer (e.g. CTRL-Z).
The append into file option allows to append data to existing files.
This works only for supported file types (such as text or zip, not for images) and as long as the clipboard contains data compatible with the selected file type.
If the file does not exist, it is created.
This option is exspecially useful in combination with batch mode (see below).
If autosave mode is enabled, the file to paste will directly be created and selected for renaming.
Otherwise, a dialog will prompt for filename and type.
By holding SHIFT when the program starts, the autosave mode setting can be temporarily inverted (show the dialog even though autosave is enabled, or skip the dialog even though autosave is disabled).
When running Paste Into File from the start menu or tray, the dialog will always be shown.
The filename template can be edited from the UI or via command line (see below for a description of the available formats).
When holding CTRL while the program starts, the file will be saved to a subdirectory.
The corresponding template can be configured from the UI or via command line (see below).
The available file extensions depend on the formats available in the clipboard.
For example, if you copy a range of cells from a spreadsheet, the data is available not only as text, but also in DIF, RTF, SLK and HTML formats and even as screenshot.
Either select one of the suggested or enter a custom extension (which will be remembered).
An appropriate format is then chosen automatically1 and a preview shown.
When selecting * as extension or in autosave mode, the file extensions is determined automatically, i.e. the clipboard is saved as image, if available, or else as text. The format is determined by the last used extension for the respective filetype (which can also be set via command line).
A special batch mode exists to monitor the clipboard and save it every time new contents are copied.
If enabled, the filename is purely determined by the template and a new file is created for each copy (which supports a dedicated counter variable).
In combination with "append into file", the data is collected in a single file instead (fixed filename).
Copy file contents
To copy the contents of a file to the clipboard, use the file explorer context menu, the hotkey WIN+ALT+C (if enabled) or the command line option.
Currently, image and text files are supported. If the file format is not understood, an error message will be shown.
For non-text files, the file path is copied as text in addition to the image contents and file.
Filename template format
The filename and/or subfolder template string may contain the following placeholders:
{0}: The current date and time, e.g. {0:yyyy-MM-dd HH-mm-ss}.
In addition to the standard format specifiers,
j for day-of-year and w for week-of-year are supported.
{1}: The save counter for batch mode. E.g. {1:000} for 3-digit zero padding. See format specifiers for details.
{2}: The clipboard text. E.g. {2:15} to limit it to 15 characters.
Command Line
Use help, help paste, help config etc. as argument to show available command line options, e.g.:
To force saving plain text data to a file with a special extension,
prepend a dot to the file extension (the actual filename will still have only a single dot).
For example, when copying syntax highlighted HTML code snippets from a browser,
using html will cause the html-formatted text to be saved,
while using .html will save the plain text. ↩