Skip to content

dkostmii/convert-to-base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert-to-base64

A tool to convert an image to Base64 data URL, which can be embedded in HTML or SVG.

How to use

  1. Obtain the URL from your image, clicking the Convert image button.
  2. Copy it.
  3. Embed the image:
    • in SVG:

      <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
        <image href="(YOUR URL)" />
      </svg>
    • in HTML:

      <!DOCTYPE html>
      <html>
        <head>
          ...
        </head>
        <body>
          <img src="(YOUR URL)" />
        </body>
      </html>