HTML, CSS या JSON में एम्बेड करने के लिए छवि को Base64 data URI में बदलें, पूरी तरह आपके ब्राउज़र में।
Image to Base64 का उपयोग कैसे करें
अपने डिवाइस से एक छवि चुनें।
data URI, या तैयार CSS snippet कॉपी करें।
इसे अपने HTML, CSS या JSON में पेस्ट करें।
This image to Base64 converter turns a picture into a data URI, a long text string that embeds the image directly, plus a ready-to-use CSS background snippet. You can inline an image instead of linking to a separate file.
It runs locally in your browser, so your image is read on your device and never uploaded.
A data URI carries the whole image inside the markup, so the browser does not make a separate network request to fetch it. For small assets like icons, that saved round trip can make a page feel faster.
The catch is size and caching. Base64 adds roughly 33 percent overhead because it represents binary data with a limited text alphabet, and an inlined image cannot be cached separately, so it is downloaded again with every page that contains it.
The rule of thumb is to inline small images, icons, tiny logos or a sprite, where avoiding a request is worth the overhead, and to keep larger images as normal files that the browser can cache and load in parallel.
Data URIs work anywhere a URL is accepted: an img src, a CSS background, or a field in JSON or an email template. That makes them handy for self-contained snippets.
अक्सर पूछे जाने वाले सवाल
नहीं। छवि पूरी तरह आपके ब्राउज़र में पढ़ी जाती है, इसलिए यह कभी आपके डिवाइस से नहीं जाती।
छोटी छवियों जैसे icons के लिए, जहां अतिरिक्त network request से बचना आकार वृद्धि के लायक है। बड़ी छवियों के लिए, एक सामान्य फ़ाइल बेहतर है।
Base64 encoding लगभग 33% overhead जोड़ती है क्योंकि यह सीमित टेक्स्ट वर्णमाला का उपयोग करके binary data दर्शाती है।
इस टूल को एम्बेड करें
इस टूल को अपनी वेबसाइट में जोड़ें। नीचे दिया स्निपेट कॉपी करें; यह अपने आप अपडेट रहता है।
<iframe src="https://monu.tools/embed/hi/image-to-base64" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>संबंधित टूल
टेक्स्ट को Base64 में एनकोड करें या Base64 को वापस टेक्स्ट में डिकोड करें. स्वचालित दिशा पहचान के साथ UTF-8 सुरक्षित.
URL और URL घटकों को प्रतिशत-एनकोड और डिकोड करें, UTF-8 सुरक्षित.
JSON Web Token को डिकोड करके उसके हेडर और पेलोड का निरीक्षण करें, मानव-पठनीय समाप्ति और जारी करने के समय के साथ। पूरी तरह आपके ब्राउज़र में चलता है; टोकन कभी अपलोड नहीं होते।
किसी भी टेक्स्ट के SHA-1, SHA-256, SHA-384 और SHA-512 हैश सीधे अपने ब्राउज़र में जनरेट करें.