PDF Mikata

इमेज को data URL के रूप में HTML में एम्बेड करना

प्रकाशित: 19 अक्तू॰ 2026 | अपडेट: 19 अक्तू॰ 2026 | परिचय (जापानी)

मुख्य बातें
  • चुनें
  • टिक करें
  • पेस्ट करें

You want to embed a small image directly in HTML or CSS without making it a separate file. A data URL is what you use. You can make one with "Use data URL format (data:…;base64,)" in Convert Files and Base64.

चरण

  1. For "Direction", choose "File → Base64".
  2. With "Choose one file", choose the image file.
  3. Tick "Use data URL format (data:…;base64,)".
  4. A string like "data:image/png;base64,…" appears under "Base64 after conversion".
  5. Copy with "Copy result" and paste it into the HTML image's src.
It suits small images. Large images make the page heavy.

Example of use

The form for pasting into HTML: put the string you made in the src of the image tag. It can also go inside url() of a CSS background image.

Advantages of data URLs

Disadvantages of data URLs

Images that suit

Images that don't suit

A guide to size

Generally images up to a few KB to a dozen or so KB are said to suit embedding. Larger ones are easier to handle as separate files.

उदाहरण

Embedded a 2KB small icon in HTML for email. It could be displayed without attaching the image.

Common stumbling blocks

Frequently asked questions

Can things other than images become data URLs?

Yes. PDFs, text and so on can also be data URLs. But the situations to use them are limited.

सारांश

Make only small images into data URLs and embed them. Keep large images as separate files.

“फ़ाइलें और Base64 बदलें” इस्तेमाल करें (मुफ़्त)

इसके साथ काम आने वाले टूल

अगर यह गाइड काम आया हो, तो एक छोटी टिप हमारे लिए बहुत मायने रखेगी।

टिप भेजें (¥300)उपहार भेजें (Amazon विशलिस्ट)

इस टूल के और गाइड

सभी गाइड देखें