Base64 Image Encoder - Convert Images to Base64 Online
Encode images to Base64 online free. Convert JPG PNG WebP GIF SVG to data URLs, or decode back.
Tool Interface
Base64 Image Encoder
Convert images to Base64 data URLs for HTML, CSS, and JSON - or decode Base64 back into images. Free, no signup, everything runs in your browser.
Drag & drop your images here
Up to 20 files · 1 MB each
How to use
- Choose Encode to turn images into Base64, or Decode to turn Base64 back into an image.
- To encode: drag and drop images into the zone (or click Browse files). Each file gets its own Base64 output with Copy and Download .txt buttons.
- Tick the checkbox for raw Base64 without the data:image/... prefix when copying.
- To decode: paste a Base64 string or data URL, press Decode to Image, then preview and download.
Rate this tool
About This Tool
About This Tool
The Base64 Image Encoder converts your images into Base64 data URLs that you can paste directly into HTML, CSS, or JSON. It also works in reverse: paste any Base64 string to preview and download it as an image file. Everything runs locally in your browser, so your images are never uploaded anywhere.
Key Features
- Image to Base64: encode JPG, PNG, WebP, GIF, SVG, BMP, ICO, TIFF, AVIF, and HEIC files.
- Base64 to image: paste a Base64 string or data URL to preview and download the image.
- Batch encoding: process up to 20 images at once, 1 MB each.
- One-click copy: copy the full data URL or raw Base64 without the prefix.
- Download options: save encoded output as .txt, or decoded images as PNG, JPEG, and more.
- 100% private: all conversion happens on your device, nothing is uploaded.
How to Use
- Choose Encode to turn images into Base64, or Decode to turn Base64 back into an image.
- To encode: drag and drop your images into the zone, or click Browse files. Each file gets its own Base64 output with Copy and Download .txt buttons.
- Tick the checkbox if you want raw Base64 without the data:image prefix when copying.
- To decode: paste a Base64 string or full data URL, press Decode to Image, then preview and download the result.
Frequently Asked Questions
What is a Base64 data URL?
An image converted into text that you can paste directly into HTML, CSS, or JSON, instead of linking a separate image file.
Which image formats can I encode?
JPG, PNG, WebP, GIF, SVG, BMP, ICO, TIFF, AVIF, and HEIC.
Can I encode several images at once?
Yes. Batch encoding processes up to 20 images at once, 1 MB each.
Can I decode Base64 back into an image?
Yes. Paste a Base64 string or data URL to preview it and download it as an image file, in PNG, JPEG, and more.