Convert images to Base64 or Data URI strings and decode Base64 back into downloadable images.
Encode images for use in HTML, CSS, JavaScript, JSON, APIs, emails, and developer workflows — or decode Base64 strings into downloadable image files with automatic MIME detection.
or paste from clipboard (Ctrl+V)
Max 32M
Upload an image and click Encode to generate Base64 string, Data URI, and developer code.
MIME validated server-side. SVG sanitized before encoding.
—
—
• Format: data:<mime>;base64,<data>
Base64
The raw encoded binary data with no type information.
iVBORw0KGgoAAAANSUhEUgAA...
Data URI
Includes MIME type and encoding so browsers can render it directly.
data:image/png;base64,iVBORw0KGgo...
Accepts raw Base64 (e.g., iVBORw0KGgo...) or Data URI
(e.g., data:image/png;base64,...).
Paste a Base64 string or Data URI on the left, then click Decode.