Base64 Icon

Here’s a program for Python coders. Python can use an icon file as a program favicon but there’s a way to embed the icon in the program without using an external file: encoding the icon to base64 bytes and loading the resulting code right into the script. This program will convert a PNG image containing an icon to base64 bytes.


Click the button below to download the Windows executable and the Python source code from GitHub.


Main window