Image to Base64
Convert images to Base64 encoded strings
Loading tool…
How to use this tool
Create a data URL containing an image's bytes and MIME type for embedding in small examples or documents.
Choose a JPG, PNG or WebP image.
Choose Encode Image to populate the Image Base64 data field.
Copy the complete text, including the data:image/...;base64, prefix.
Practical example
A tiny PNG icon produces a string beginning data:image/png;base64, followed by encoded bytes.
Limits and troubleshooting
Base64 increases data size by roughly one third before the prefix. It is not encryption; avoid embedding large photos or confidential images in shared source files.
About Image to Base64
Encode an image as Base64 data for embedding or transfer. Base64 usually increases the amount of text compared with the binary file. All processing happens directly in your browser — your files never leave your device.