Image to Base64 Converter
Convert images to Base64 data URIs instantly in your browser. Supports PNG, JPG, GIF, WebP, SVG, and more. Copy as a data URI or raw Base64 string. No upload — files stay on your device.
Drop an image here or click to browse
PNG · JPG · GIF · WebP · SVG · BMP
Related Tools
Image Compare
Compare two images with a draggable before/after slider in your browser. No upload required.
Image Cropper
Crop any image in your browser by selecting a region with your mouse. Download as PNG — no upload required.
Image → ASCII
Convert any image to ASCII art instantly in your browser. Adjust width, copy or download — no upload required.
Advertisement
How to Use
- Drag and drop an image onto the upload area, or click to browse.
- The Base64-encoded output appears instantly with a preview.
- Toggle between Data URI (includes mime-type prefix) and Raw Base64.
- Click Copy Output to copy the result to your clipboard.
Common Use Cases
- Embedding images in HTML:
<img src="data:image/png;base64,..."> - CSS backgrounds:
background-image: url(data:image/...) - Passing images in JSON API payloads
- Reducing HTTP requests by inlining small icons