To convert a JPEG to a desktop icon, first use an image editor or online converter to save the JPEG file as a .ico file. Ensure the icon is appropriately sized, such as 256×256 pixels.