Installera ZYBERMART

Öppna alla verktyg från hemskärmen eller Dock, i ett eget fönster. Verktyg du har använt fungerar även offline.

Bild till Base64

Konvertera en bild till en Base64-data-URI, med färdiga kodsnuttar för HTML-img och CSS-bakgrund att klistra in.

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.

Logga in på ZYBERMART

Ha dina CV:n, fakturor, flashcards, anteckningar och sparade verktyg på alla dina enheter. Det är gratis, och verktygen fungerar likadant utan konto.

eller

Inget lösenord behövs. Genom att logga in godkänner du villkoren. Läs hur vi hanterar dina data i integritetspolicyn.

Ditt konto

När du loggar ut finns en kopia av ditt arbete kvar i den här webbläsaren. På en delad dator bör du rensa webbläsardata efteråt.

Vad vill du skapa?

Designer

Sociala medier

Dokument

Studier

Redigera

Visa alla 282 verktyg