Convert files to Base64 and decode Base64 strings back to files. Preview Base64 encoded images directly.
Convert any file to a Base64 string, or decode a Base64 string back into a downloadable file. Base64-encoded files are commonly embedded in JSON APIs, data URIs, CSS, and email attachments.
Images decoded from Base64 can be previewed directly in the tool. All reading, encoding, and decoding happens in your browser — files are never uploaded to a server.
Select or drop a file into the tool and it is read locally and converted to a Base64 string you can copy — for example to embed it in JSON or a data URI.
Yes. Paste the Base64 string, and the tool decodes it into a file you can download. If the data is an image, you can preview it right in the browser.
No. Files are read with the browser’s FileReader API and processed entirely on your device — nothing is sent over the network.
Base64 represents every 3 bytes as 4 text characters, so the encoded string is about 33% larger than the original file. That is normal and expected.