A simple tool for developers

Image to Base64 & Base64 to Image Converter

Convert images to Base64 or convert Base64 image data back into downloadable images directly in your browser.

Advertisement

Convert an image to Base64

Choose an image or drop it below. Nothing leaves your device.

Drop an image here, or browse files PNG, JPG, GIF, WebP, SVG, BMP, ICO or AVIF · up to 20 MB
Output format Choose the format that fits your project

Your images are processed locally in your browser and are not uploaded to our server.

Advertisement

The essentials

Image data, ready to use

Move image data between a file and the formats commonly used in web development.

01 / ENCODE

What is Base64?

Base64 is a way to represent binary data as text using a set of 64 characters. It lets image data travel in text-based formats such as HTML, CSS, and JSON.

02 / CONVERT

How does conversion work?

Your browser reads the selected image and encodes its bytes as Base64. For decoding, the tool turns valid Base64 data back into image bytes and previews them.

03 / USE

When should I use a Base64 image?

Embedding a small image can reduce separate requests, but it increases text size and can’t be cached independently. For larger images, a regular image file is often more efficient.

Quick guide

From image to usable code

  1. 1Choose an image, drop it in, or paste an image from your clipboard.
  2. 2Select Data URI, raw Base64, HTML, or CSS output.
  3. 3Copy the result, or switch modes to preview and download Base64 data.
Advertisement