Convert Image to Base64
Encode an image as a Base64 data URI string to embed directly in HTML, CSS or email.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Made for developers and email marketers who want to embed small icons or logos directly in HTML, CSS or an email template instead of hosting a separate image file.
Four ready-to-copy forms are offered: a data URI, a CSS background-image line, an img tag, and the raw Base64 string. The text is about a third larger than the original file, so keep this for small images.
How to use
- Choose a small image such as an icon or logo.
- Choose the output type: data URI, CSS, img tag or Base64 only.
- Click Copy.
Frequently asked questions
Are my images uploaded to the internet?
No. Images are opened and processed right in the browser on your device. Takikit has no server that receives images, and you can turn off your internet after opening the page and the tool will still work.
Related tools
More Images tools
Resize ImageChange an image's size by pixels, percentage or long edge, with an aspect ratio lock so the picture is not distorted.Convert GIF to PNGSave the first frame of a GIF as a sharp PNG.Bulk Image ResizerBring dozens of images to the same size in one go, for example 1600 pixels on the long edge.Convert BMP to PNGConvert heavy BMP images to a much smaller PNG, keeping every pixel exactly.Crop ImageDrag the frame to crop exactly the area to keep, freeform or at 1:1, 4:5, 9:16 and 16:9 ratios.Convert AVIF to PNGConvert AVIF images to PNG with no extra loss of detail.
See all image tools