Convert any image to a Base64 string
Encode images into Base64 data URLs.
Frequently asked questions
Base64 is a text representation of binary data. An image encoded as a Base64 data URL can be embedded directly in HTML (img src), CSS (background-image) or JSON without a separate file.
Yes — Base64 encoding adds about 33% to the file size. It's best for small images (icons, logos, thumbnails) where saving an extra HTTP request matters more than file size.
Never. The encoding happens entirely in your browser — your image never leaves your device.
Need batch processing or more options? Open full image converter