T-74 · Converters
Convert images to Base64, a data URL, an <img> tag or a CSS background-image, with the size increase shown. Several files at once; nothing is uploaded.
Or drag and drop here. Files are read in your browser and never uploaded.
Choose one or more images to get their Base64 text.
About this instrument
Choose or drop one or more images to get their Base64 encoding in the form you need: the bare Base64 string, a data: URL, a ready-to-paste <img> tag with the width and height filled in, or a CSS background-image declaration. Each file shows its original size, the encoded size and the growth, which is about a third because Base64 spends four characters on every three bytes. The images are read in your browser and stay on your device.
FAQ
For small icons and images under a few kilobytes, where saving an HTTP request matters more than the size increase, or when a single self-contained HTML file or email is needed.
Base64 represents every 3 bytes with 4 text characters, so the result is 4/3 of the original size, rounded up to a multiple of 4 characters.
No. Encoding happens in your browser with the files you select; nothing is sent to a server.
Related instruments