Image to Base64 Converter

Upload Image

Drop image here

or click to select
Output
0 chars
Base64 to Image

Image will appear here

Image to Base64 Converter and Decoder

Convert images to Base64 string for embedding in HTML, CSS, or JSON. Also decode Base64 back to images.

Features

  • Convert any image format (PNG, JPG, GIF, SVG, WebP)
  • Output as Data URL, pure Base64, HTML img tag, CSS background
  • Drag & drop file upload
  • Reverse conversion from Base64 to image
  • Download decoded images

Base64 Image Use Cases

  • Embedding icons in CSS without extra requests
  • Storing images in JSON and databases
  • Email templates with embedded images
  • Reducing HTTP requests for small images

Image to Base64 Questions

Embed images directly in HTML/CSS without separate HTTP requests. Useful for small icons, email templates, or when you can't serve static files.

Yes, about 33% larger. The trade-off is fewer HTTP requests. Worth it for small images (under 10KB), not worth it for large photos.

PNG, JPG, GIF, SVG, WebP - anything your browser can display. The output format matches the input.

Yes, paste a Base64 string or data URL in the decoder section. The tool will show the image and let you download it.