Convert image to base64 string online:

You can embed the image into the HTML (<img src="data:image/...">), CSS (background-image: url("data:image/...")) or JavaScript (element.style.backgroundImage = 'url("data:image/...")'