Encode or decode Base64
Turn any file into a Base64 string, or decode one back into a file. Useful for embedding assets in code or CSS.
Files are processed in your browser. Nothing is uploaded to our servers.
Fullscreen
Drop any file here, or click to browse
01
Pick a direction
Encode a file into Base64, or decode a Base64 string back into a file.
02
Add your input
Drop a file to encode, or paste a Base64 string (or a full data: URL) to decode.
03
Copy or download
Copy the encoded text, or download the decoded file.
Frequently asked
Is my file uploaded anywhere?
No. Encoding and decoding both happen in this tab. Nothing is sent anywhere.
What's the difference between the plain string and the data: URL?
A data: URL includes a "data:<mime-type>;base64," prefix that tells a browser or app what kind of file it is. Useful for embedding directly in HTML/CSS. The plain string is just the raw encoded bytes.
Is there a file size limit?
None imposed, but Base64 encoding makes text about 33% larger than the original file. Very large files may be slow to encode.
Does this work offline?
Yes, once the page has loaded.