Image Base64 Converter
Convert between image files and Base64 data URLs
How to Use
- Choose mode
Select "Image to Base64" or "Base64 to Image" mode from the toolbar.
- Provide input
Image to Base64: select an image file from the toolbar. Base64 to Image: paste a Base64 string into the input area.
- Use the result
Copy the Base64 string for HTML/CSS embedding, or download the decoded image preview.
Image Base64 Converter Examples
Image to Base64
(select an image file)data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...Select a file from the toolbar file input to get a Data URL.
Base64 to Image preview
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...(image preview + download button)Paste a Base64 string into the input area and click "Convert".
Features
- Convert PNG/JPEG/WebP/GIF/SVG to Base64 data URLs
- Preview images from Base64 strings
- Download decoded images
- Display file size, dimensions, and MIME type
- Output as Data URL format (data:image/...;base64,...)
- Local processing (images never leave your device)
- Dark mode support
FAQ
What is a Base64 data URL?
A Base64 data URL is a string in the format "data:MIME;base64,encoded_string" that embeds image data directly into HTML or CSS. It is commonly used for small icons and logos.
Which image formats are supported?
All image formats supported by your browser, including PNG, JPEG, WebP, GIF, and SVG.
Are images uploaded to a server?
No. All conversion uses the browser Canvas API and FileReader API. Image data is never transmitted externally.