Follow these steps to encode the image to Base64 string:
- Go to https://image2base64.xyz
- Click on the Choose Files button or Drag and Drop the images to the file drop zone.
- After uploading the files it will immediately encode the images to the Base64 string as shown in the below image.
- Now copy the Base64 string and use it in your programs.