Image to Base64
Convert images to Base64 strings. Max file size: 10MB
📁
Drag & drop an image here
or click to browse
JPEG, PNG, WebP, GIF, BMP, SVG up to 10MB
Preview
Base64 Output
Base64 Length 0
Actions
What is the Image to Base64 Tool?
This tool converts images to Base64 encoded strings. Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used to embed images directly in HTML, CSS, or JSON data without requiring external file requests. All processing happens in your browser.
How to Use
- Upload an image by dragging it or clicking the upload area
- The image preview and Base64 string will be generated automatically
- Toggle the data URI prefix option as needed
- Copy to clipboard or download as a text file
Use Cases
- Embed images in HTML:
<img src="data:image/png;base64,..."> - Use images in CSS background:
background-image: url("data:image/...") - Store images in JSON or XML data
- Send images in API requests without multipart forms
- Create self-contained HTML files with embedded images
🔒 Images are processed entirely in your browser. Nothing is uploaded to any server.