Drop in an image, get a Base64 string or Data URI back instantly. Nothing ever leaves your browser.
Drop in any image file, or click to browse. It's read locally - nothing is sent anywhere.
Pick a full Data URI (ready to paste into HTML/CSS) or raw Base64 with no prefix.
Grab the code with one click, or save it as a .txt file - instantly, no sign-up required.
Base64 turns binary file data into plain text made only of letters, numbers, +, / and =. That makes it safe to drop straight into HTML, CSS, JSON, or an API payload - anywhere raw binary isn't allowed.
A Data URI wraps that text with a small header (data:image/png;base64,…) that tells the browser what kind of file it is, so it can be used directly as an <img src> or a CSS background-image with no extra file to host.
No. The file is read locally with the browser's FileReader API and encoded on your device - it never leaves your computer.
A Data URI includes a prefix like data:image/png;base64, so it can be pasted directly into an img src or CSS background-image. Raw Base64 is just the encoded text with no prefix, useful for APIs or databases that add their own MIME type.
Yes, roughly 33% larger than the original binary file, since every 3 bytes becomes 4 text characters. It's convenient for embedding but not for storage efficiency.
Any of them. The tool encodes the raw bytes of whatever file you drop in, so JPG, PNG, GIF, WebP, SVG, BMP, ICO and even formats your browser can't preview will all convert correctly.