Instal ZYBERMART

Buka semua alat dari layar utama atau dock, di jendelanya sendiri. Alat yang pernah Anda gunakan juga bisa dipakai offline.

Gambar ke Base64

Ubah gambar menjadi data URI Base64, dengan potongan kode HTML img dan CSS background siap tempel.

How to use the output

In HTML:

<img src="data:image/png;base64,iVBORw0KGgo..." alt="Logo">

In CSS:

.icon { background-image: url("data:image/png;base64,iVBORw0KGgo..."); }

To encode or decode text instead of images, use the Base64 encoder. Make the image smaller first with the image compressor.

Frequently asked questions

What is a Base64 data URI?

A data URI puts a whole file inside a text string, like data:image/png;base64,iVBOR…. Browsers can show it directly in an <img> tag or CSS background, so the image doesn't need a separate file or request.

When should I use Base64 images?

For very small images such as icons, tiny logos or placeholders under a few kilobytes, especially in emails or single-file HTML pages. For larger images, a normal file is better: Base64 is about 33% bigger and can't be cached separately.

Why is the Base64 text larger than my image?

Base64 uses 4 text characters for every 3 bytes of data, so the encoded result is about 4/3 the size of the original file.

Are my images uploaded?

No. The image is read and encoded in your browser and never leaves your device.

Masuk ke ZYBERMART

Simpan CV, invoice, flashcard, catatan, dan alat tersimpan Anda di semua perangkat. Gratis, dan semua alat tetap berfungsi sama tanpa akun.

atau

Tanpa kata sandi. Dengan masuk, Anda menyetujui ketentuan kami; lihat cara kami mengelola data Anda di kebijakan privasi.

Akun Anda

Saat keluar, salinan pekerjaan Anda tetap tersimpan di browser ini. Di komputer bersama, hapus data browser setelahnya.

Apa yang ingin Anda buat?

Desain

Media sosial

Dokumen

Belajar

Edit

Lihat semua 282 alat