Convert Image to Base64
Encode an image to a Base64 data URI. Paste it straight into your CSS, HTML, or JSON. Free, in your browser.
Loading tool…
Base64 encoding turns an image into a text string you can drop straight into HTML, CSS, or JSON, with no separate file to request.
It's handy for tiny icons, email templates, and data URIs. You get the raw Base64 plus a data URI that's ready to paste.
Encoding runs on your device, so your image is never uploaded.
Related tools
Convert Base64 to ImageDecode a Base64 string or data URI back into an image and download it. Free, instant, in your browser.Base64 Encode & DecodeEncode text to Base64 or decode Base64 back to text online. Free, instant, in your browser.Compress an ImageCompress JPG, PNG, and WebP images online to reduce file size while keeping quality. Free, fast, and processed in your browser.Convert HEIC to JPGFree HEIC to JPG converter. Change HEIC/HEIF images to JPEG right in your browser. No upload, no signup, no watermark.