ZYBERMART इंस्टॉल करें

हर टूल को अपनी होम स्क्रीन या डॉक से उसकी अपनी विंडो में खोलें। जिन टूल का आप इस्तेमाल कर चुके हैं, वे ऑफ़लाइन भी काम करते हैं।

इमेज से Base64

इमेज को Base64 data URI में बदलें, पेस्ट करने के लिए तैयार HTML img और CSS बैकग्राउंड स्निपेट के साथ।

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.

ZYBERMART में साइन इन करें

अपने CV, इनवॉइस, फ़्लैशकार्ड, नोट्स और सेव किए गए टूल अपने सभी डिवाइस पर रखें। यह मुफ़्त है, और टूल बिना अकाउंट के भी वैसे ही काम करते हैं।

या

पासवर्ड की ज़रूरत नहीं। साइन इन करके आप शर्तों से सहमत होते हैं; हम आपका डेटा कैसे संभालते हैं, यह प्राइवेसी पॉलिसी में देखें।

आपका अकाउंट

साइन आउट करने पर आपके काम की एक कॉपी इस ब्राउज़र में रहती है। शेयर किए गए कंप्यूटर पर, बाद में अपना ब्राउज़र डेटा साफ़ कर दें।

आप क्या बनाना चाहते हैं?

डिज़ाइन

सोशल मीडिया

डॉक्यूमेंट

पढ़ाई

एडिट करें

सभी 282 टूल देखें