A worked example
Encode a logo as a data URI
- Start with
- Valid PNG logo → Image to Base64 → include prefix
- Check the result
- The preview appears with a string beginning data:image/png;base64,.
Turn the prefix off for raw Base64. Encoding does not resize or recompress the image.