Image to Base64 Converter

Turn a raster image into Base64 without re-encoding its pixels. Copy a full image data URL for an embedded asset, or use raw Base64 when you already know the format.

Workspace

Choose a raster image up to 8 MB.

Result

Your result will appear here.

How to use it

  1. Choose an image up to 8 MB.
  2. Select a data URL or raw Base64.
  3. Generate and copy or download the full encoded text.

Worked example

Input
A PNG file → Data URL
Output
A string beginning with data:image/png;base64,.

Frequently asked questions

Does Base64 compress the picture?

Base64 represents binary bytes as text. Its payload is roughly one-third larger than the original bytes before any other compression.

What is the difference between the two output formats?

A data URL starts with the content type and encoding. Raw Base64 contains only the encoded characters.