Image to Base64 converter

Turn an image into Base64 text for embedding directly in code.

Images are processed inside your browser on this device; they are not sent to our servers.

How to use the image to base64 converter

  1. Add an image.
  2. Press Encode.
  3. Copy the Base64 text.

When it's useful

  • Embedding small icons in HTML or CSS
  • Sending images inside JSON
  • Testing APIs that expect Base64

Limits to know

  • Base64 text is about a third larger than the original file.
  • Best for small images.

Your files

Processing happens in your browser. Your files stay on your device and are gone when you close the page.

Questions

What is a data URI?

Base64 text with a short prefix like data:image/png;base64, so browsers can show it directly.

Is there a size limit?

Very large images make very long text that may slow your browser.

Related tools