Image to Base64 Converter

Convert images to Base64 encoded strings. Embed images in CSS, HTML, or JSON.

Click to upload or drag and drop

PNG, JPG, GIF, WebP up to 10MB

How to Use

  1. Upload an image file (PNG, JPG, GIF, WebP)
  2. The image will be converted to Base64 automatically
  3. Toggle "Include data URI" to add or remove the data URI prefix
  4. Copy the Base64 string to use in your code
  5. Use in CSS (background-image), HTML (img src), or JSON

Use Cases

  • CSS: background-image: url(data:image/png;base64,...)
  • HTML: <img src="data:image/png;base64,..." />
  • JSON: Embed images in JSON responses
  • Email: Embed images in HTML emails
Share: