Image to Base64
Convert images to Base64 data URIs.
This free image to Base64 converter encodes JPG, PNG, GIF, WebP, SVG, BMP, ICO and AVIF images into Base64 strings you can embed directly in HTML or CSS. Choose the output that fits your workflow: a ready-to-use data URI, the raw Base64, a CSS background-image snippet, an HTML<img> tag, an HTML favicon <link>, a Markdown image, or a JSON payload with the MIME type and data.
Load several images at once and switch between them from the thumbnail strip, or paste an image straight from your clipboard. Each file shows its MIME type, dimensions, original size and encoded length. Optionally wrap the output into fixed-width lines (76 characters is the classic MIME standard) for email or config files. Copy any result with one click or download it as a text file.
Related tools
Image Resizer
Resize images by pixels or percent.
Image Compressor
Shrink image file size right in your browser.
Image Color Picker
Pick colors from any image as HEX or RGB.
JPG to PNG Converter
Convert JPEG photos to lossless PNG.
PNG to WebP Converter
Shrink PNGs to modern WebP format.
WebP to JPG Converter
Convert WebP images to JPEG.