You are currently viewing How to copy file and app icons using macOS Preview

How to copy file and app icons using macOS Preview

Copy Finder icons in macOS’s Preview app easily.

You can use the macOS Finder’s Copy command to copy and paste files. But here’s how to use the same command to copy file icons into Preview.

You’ve probably used the macOS Finder’s popup contextual menu to Copy and paste files in the Finder from one location to another in the filesystem.

To do so, you select a file or files first in the Finder, then Control-click (or right-click) the items to see the Finder’s popup contextual menu:

Copying an item in the macOS Finder via the contextual menu. Select an item, Control-click, then select “Copy” from the contextual menu.

Usually, you’d then use the Paste Item(s) command from the popup menu to make a copy for the files in some other folder or drive on your system.

But if you just want to make an image of the copied file’s icon and not the file itself, you can do that too. All by pasting the item into macOS’s Preview app.

Pasting into Preview

To do so, Copy an item in the Finder from the contextual menu just as you would if you were going to Paste Item, but instead of selecting Paste Item, open the Preview app and select File->New from Clipboard.

If the item you copied in the Finder was an app, or a known, built-in file type for which macOS has a system icon, you willl get a new full-size icon image complete with alpha in a new window in Preview. You can then save the image as a file or copy it to another app.

Most file icons can be copied from the Finder and pasted into Preview in macOS. Copied Finder icons in Preview for PDF, an alias to a text file, and an image for an app.

For some file types (such as PDF and other documents) doing this doesn’t create a file icon, but a complete new copy of the document itself.

For PDF files if you want the generic PDF icon and not a copy of the file itself, you’ll first need to do a File->Get Info, select the icon in the Get Info window, press Command-C on your keyboard, and then do a File->New from Clipboard in Preview.

This method also works for most Finder alias files – giving you the generic icon image of the thing the alias points to.

Preview makes large, clean, perfect images from the copies and it’s far quicker and easier to make icon images this way than to try to copy an app’s .icns file from its bundle, or screenshot a file and then edit in an image editing app.

In macOS Sonoma, Preview can now also save the images as HEIF files.

Source