Encodes text or a file to Base64.
This tool runs on JavaScript. To use it, turn on JavaScript in your browser and reload the page.
Base64 Encode turns any file into Base64 text made up only of letters, digits and a few signs. An image, a PDF, audio, a font or any other kind of file can be uploaded; up to 64 MB. This format is used to pass files through channels that can only carry text: email attachments, APIs that send files inside JSON, certificates embedded in configuration files, or small images embedded in HTML and CSS.
The “break lines at 76 characters” option is on by default and follows the line-length rule of email (MIME); switch it off if you want output on a single line. The “Output as a data: URI” option gives the output in the form data:image/png;base64,… ; that text can be pasted straight into an <img> tag or into url() in CSS. The file type is worked out from the file name. Important: Base64 is not encryption, anyone can decode it; and it also makes the file about 33% bigger. To turn it back, use the “Base64 Decode” tool. You can upload up to 20 files at once; they are all processed with the same settings, and several files download as a single ZIP.
Base64 turns every 3 bytes into 4 characters, so the output is about 33% larger than the input; since wrapping at 76 characters adds a line break to each line, the growth approaches 35%. A 3 MB image becomes a text of about 4 MB. If the input length is not a multiple of 3, one or two = padding characters are added at the end; in URL-safe form this padding is dropped, and - and _ are used instead of + and / (RFC 4648 §5). Line wrapping follows the 76-character line limit of the MIME standard (RFC 2045). The file you upload can be up to 64 MB.
No. Base64 is only an encoding; it needs no key and anyone can decode it in seconds. Do not use it to protect secret data.
Base64 writes every 3 bytes with 4 characters; that is why the output grows by roughly 33%. If line breaking is on, the line endings add a little more.
For embedding small icons and images in HTML or CSS without asking for a separate file. With large files it weighs the page down; use it for images of a few KB.
No. Your file reaches the server only to be processed and is deleted when the job is done; the output is deleted too once you download it and leave the tool. You don't need an account, a name or an email address, and your files are never sent to a third-party service. It is free to use: we set no hourly or daily quota on the number of jobs, we don't make you watch an ad before processing, and we add no watermark to the output.
About us · Contact · Privacy & KVKK · Cookie Policy · Terms of use