Image to Base64

Turn an image into a Base64 text string you can paste into HTML or CSS.

How it works

Turns an image into a Base64 text string you can paste into HTML, CSS or JSON. Choose the full data link or only the text.

Good to know

Common questions

How do I use it in CSS?
Use background-image: url("data:image/png;base64,...") with the full data link.
Is Base64 encryption?
No. Anyone can decode it. It only turns bytes into text.
Is the image uploaded?
No. Everything runs in your browser and nothing leaves your device.

More in Images.