Image to Base64
Encode any image — PNG, JPG, GIF, WebP, BMP, or SVG — as Base64 or a ready-to-paste Data URI.
Click to upload or drag & drop
PNG, JPG, GIF, WebP, BMP, SVG
Encode any image as Base64
Embedding images directly into HTML, CSS, JSON, or Markdown means one less HTTP request and one less moving part. This tool reads your image with the browser's FileReader, encodes it as Base64 locally, and gives you six pre-formatted outputs — raw, Data URI, HTML <img>, CSS background, Markdown, or JSON.
Need the reverse? Use Base64 to Image to preview and download any Base64-encoded image.
