Image Base64 Encoder / Decoder

Free online image Base64 encoder and decoder. Upload an image to get its Base64 string, or paste a Base64 string to preview and download the image. Supports PNG, JPG, GIF, WebP, and SVG.

Tools run in your browser. Shared links may include your input; check the URL before sharing.

How to use

  1. Choose an image or paste Base64 image data.
  2. Check the preview and copy the result you need.

This example illustrates one supported operation. Choose the matching mode and settings above; generated values and formatting may vary.

Example input or settings

<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"></svg>

Example result

data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiPjwvc3ZnPg==

How does a data URL differ from raw Base64?

It includes a prefix with the media type. Use the full URL or just the encoded part as required.