Convert images to Base64 encoded strings for use in HTML and CSS.
Converting an image to Base64 encodes its binary data as a text string that can be embedded directly in HTML, CSS, or JSON. This eliminates the need for a separate image file request, which can improve performance for small icons. The resulting Data URI can be used directly as an img src or CSS background-image. Note that Base64 encoding increases file size by approximately 33%.