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 externa 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.
Download
Click on the following link to download the Windows executable and the Python source code from GitHub.
Screenshots
![](https://fonazzastent.wordpress.com/wp-content/uploads/2022/04/base64_icon_screenshot01-1.png?w=602)