Image to Base64 Converter

Convert images to Base64 or decode Base64 strings back to images — free, instant, no upload. Generate data URIs ready for HTML img src and CSS background-image.

Image → Base64

Drop your image here or

JPG · PNG · WebP · GIF · BMP · SVG · Max 10MB

Filename
Format
Resolution
File size
Base64 length

Base64 → Image

Image preview
Format
Resolution
Est. file size

😄 Free thanks to ads

Features

How to Use

  1. Upload Image: Drag an image into the left panel or click to choose a file
  2. Copy Result: Copy the full data URI or just the Base64 part
  3. Base64 → Image: Paste a Base64 string in the right panel to restore the image

Use Cases

Code Examples

Paste the generated data URI directly into your HTML or CSS.

HTML

<!-- img src에 data URI 직접 삽입 -->
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...==" alt="이미지">

<!-- picture 태그와 함께 사용 -->
<picture>
  <source srcset="data:image/webp;base64,UklGRiAA...==" type="image/webp">
  <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...==" alt="이미지">
</picture>

CSS

/* background-image에 data URI 사용 */
.thumbnail {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...==");
  background-size: cover;
  background-position: center;
}

/* content 속성에 사용 */
.icon::before {
  content: url("data:image/svg+xml;base64,PHN2ZyB4bWxu...==");
}

Help us improve this tool

Share what you like, what needs work, or features you'd like to see

Related Tools

More iTool Features!