Image to Base64

Turn a picture into a data URI you can paste straight into CSS or HTML.

Choose an image to create a Base64 string you can copy or download.

or drag and drop it here JPG, PNG, WebP, GIF or BMP

Good to know

What do I get?

A text file containing the original image as a data URI, ready to use where an application accepts an image encoded as text.

Does Base64 make the image smaller?

No. Base64 text is larger than the original file, usually by about a third. It changes the representation rather than compressing or editing the image.