Free online tool
Image to Base64
Encode an image as a data URL you can paste into HTML, CSS, or an email.
Processed in your browser — images are not uploaded to the server for this tool.
Drop an image here
JPG, PNG, WebP, or GIF · up to 10 MB
How to turn an image into Base64
- Choose a JPG, PNG, WebP, or GIF.
- Click Encode image.
- Copy the data URL. The characters after the comma are the raw Base64.
The file is read in your browser and is not uploaded. A GIF stays in its original bytes, including animation.
Frequently asked questions
Is the image uploaded?
No. The data URL is created in your browser from the file you choose.
Where can I use the result?
Paste the data URL into an img src, a CSS url(), or an email template. Use the text after the comma when a field asks for raw Base64.
Related free image tools
Keep editing without leaving the site.
Resize Image
Change width and height online.
Open toolCrop Image
Cut to freeform or fixed aspect ratios.
Open toolCompress Image
Reduce file size with quality control.
Open toolConvert Image
Switch between JPG, PNG, and WebP.
Open toolRotate Image
Rotate or flip an image before download.
Open toolStrip Metadata
Re-encode a photo without embedded metadata.
Open tool