Image to Base64 online

Encode images as Base64 or Data URLs in your browser—files stay on your device. Preview the picture and copy the string.

Image to Base64 in the browser

Turn any picture into a Base64 string or a full Data URL (data:image/…;base64,…) without uploading files. Processing runs locally in your browser.

  • Copy the result in one click
  • Switch between Data URL and raw Base64
  • Preview the image before you copy
  • Works offline-capable in a modern browser

When to use which output?

  • Data URL — handy for inline CSS, small assets, or quick prototypes
  • Base64 only — use when an API or config expects the raw encoded payload without the prefix

Decode Base64 back to a file?

Use Base64 to image to paste a string and download the picture.

Large images

Base64 strings can get very long. For big photos, prefer copying over scrolling the textarea. If you need to shrink files first, try our image compressor.