How do Icon? files work and how to create your own I recently noticed that in folders with special icons (eg. on the desktop) have a file in them named Icon? (its a hidden file btw).

I tried opening one up using my text editor (Atom) and it comes up as an empty text file, yet it has a file-size (for the desktop one it was 346KB).

I understand the purpose of these files, but how do they work and is there any way to make your own?
The purpose of Icon? is to display the icon when you click "Get Info" or Command + i. You can see it in the top left side of "Get Info" window.

There are many apps and help documents with which you can create icons. Check out few of them listed below.


Apple Support
Image2icon
How to Make Mac Icons
IconJar


There are tons beautiful Mac icons available online. Google is your friend.