Convert image files to Base64 strings or decode Base64 back to images entirely in your browser. Max 500 KB.
100% Client-Side — Nothing ever leaves your device
This tool runs entirely in your browser using JavaScript. No network requests are made, no data is transmitted to any server. Your files and output exist only in your browser's memory until you close the page. Only safe file types (images) are accepted, with a 500 KB size limit.
Input
Encode: Drop or select an image file.
Decode: Paste a Base64 string.
Process
The tool verifies the file is a valid image and converts it using the FileReader API
Result
Encode: Copy the Base64 string or data URI.
Decode: Preview and download the image.
PNG — Lossless compression, transparency support
JPEG — Lossy compression, photographs
GIF — Animated images, limited color palette
WebP — Modern format, superior compression
BMP — Uncompressed bitmap
SVG — Scalable vector graphics
ICO / TIFF — Icons and high-quality images
Data URIs — embed images directly in HTML or CSS without external files.
API payloads — encode images for JSON-based API requests.
Email templates — inline images in HTML emails for consistent rendering.
Debugging — decode and preview Base64 image strings from logs or configs.