Base64 Image Encoder
Convert images to Base64 data URLs and back again.
Encode: image → Base64
Drop a file here
or choose a file — it never leaves your device
Decode: Base64 → image
Paste base64 image data to preview it here.
About the Base64 Image Encoder
Encode any image file into a Base64 data URL for embedding in CSS or HTML, or decode a Base64 string back into a viewable image. Fully client-side using the FileReader API.
Examples
Encode PNG
icon.pngOutput
data:image/png;base64,iVBORw0K...Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
AVIF Converter
Images
Convert images to and from AVIF with quality control.
Favicon Generator
Images
Turn any image into a full favicon pack with .ico, PNGs, manifest and HTML.
HEIC to JPG / PNG Converter
Images
Convert iPhone HEIC/HEIF photos to JPG or PNG in your browser.
Image Format Converter
Images
Convert images between PNG, JPEG, and WebP in your browser.
Image to ASCII Art
Images
Convert any image into ASCII text art in your browser.
Image to SVG Vectorizer
Images
Trace PNG or JPG images into clean, scalable SVG paths.
Frequently asked questions
Read more
- Base64 encoding explained: when to use it, when not to
Base64 turns binary into text-safe ASCII, but it isn't compression or encryption. Here's what it actually does and where it fits.
- Choosing image formats: WebP vs AVIF vs PNG vs JPEG
A practical decision guide for picking the right image format based on content type, browser support and file size.
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser