รูปภาพเป็น Base64

แปลงรูปภาพเป็นสตริง Base64

อัปโหลดรูปภาพ
JPG, PNG, GIF, SVG, WebP

Use these tools directly in Chrome

Install the DailyDevTools extension — access all tools from your browser toolbar

Add to Chrome

What is Image to Base64?

Converting images to Base64 lets you embed them directly into HTML, CSS, JavaScript, or JSON without a separate file request. This is useful for inlining small icons in data URIs, embedding images in email templates, or sending images in API payloads. DailyDevTools' Image to Base64 converter processes images entirely in your browser — your images never leave your device.

How to use Image to Base64

  1. 1Click Upload or drag and drop any image file (PNG, JPG, GIF, SVG, WebP) into the drop zone
  2. 2The Base64 encoded string appears instantly in the output panel
  3. 3Copy the raw Base64 string, or use the pre-formatted data URI (data:image/png;base64,...) ready to paste into CSS or HTML
  4. 4Toggle between HTML img tag output, CSS background-image output, or raw Base64

Frequently asked questions

Comments