Logo

Image Kit

Login

Image to Base64

Free online image to Base64 encoding tool, supports converting images to Base64 encoded strings, optional prefix inclusion, all processing is done in the browser.

Drag files here or Select Files . Supports WEBP、PNG、JPG、JPEG、BMP、GIF、TIFF、TIF、ICO、APNG、JFIF、XBM、AVIF、HEIC、HEIF、JXL、SVG、PSD、RAW、CR2、NEF、ARW、DNG、EXR、HDR、QOI、TGA、PCX、SGI、RAS、DDS、CUR、EPS、PDF、AI、EMF、WMF、XCF、CR3、RW2、ORF、RAF、SRW、3FR、ERF、MEF、MOS、NRW、PEF、X3F format(s), or press Ctrl+V to paste image

Encoding Settings

Base64 to Image

Online image to Base64 encoding tool. After selecting images, Base64 encoded strings are automatically generated. Provides HTML img tag and CSS background-image format codes, supports one-click copy for quick use.

Base64 encoded images can be directly embedded into HTML, CSS, or JSON without additional image files, suitable for small icons or scenarios requiring inline embedding, improving page loading speed.

Tip: Base64 encoding increases file size by approximately 33%, recommended for small images (typically less than 50KB).

1

Upload Image

Click upload button or drag image files to upload area

2

Set Options

Choose whether to include data:image prefix

3

Copy Encoding

Click start conversion button, wait for processing to complete and copy Base64 encoding