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
- Base64 makes the data about a third bigger.
- Use it for tiny icons only. Large images are better as normal files, because they can be cached.
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.