Updated
Using the image to base64
The data URL contains the original file bytes, including any embedded metadata. It starts with the image type and a Base64 marker, then the encoded bytes. Unlike a hosted image URL, it does not point to a remote file.
A worked example
The example begins data:image/png;base64, followed by the encoded bytes of the original sample artwork.
Before you use the result
Input is limited to 2 MB to keep the text output manageable. Base64 generally increases file size. Remove sensitive metadata first if the file will be shared.
Cite this page
ToolOctopus. “Image to Base64.” Updated 2026-09-19. https://tooloctopus.com/image-to-base64.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. Licence and source code.
