Convert image to base64 string online

Select source image:

You may use the encoded image for embedding it into HTML (<img src="data:image/...">), CSS (background-image: url("data:image/...")) or JavaScript (element.style.backgroundImage = 'url("data:image/...")'i>) code .