Processing limit: text 32 MB · files up to 64 MB on mobile and 128 MB on PC (may be lower depending on device memory)
Drag and drop a file here, or select one
Supports all file types
0 Bytes
-
Conversion mode
0 Bytes
Original size
0 Bytes
Output size
Ready
Conversion status
Helpful information
Base64 encodes 8-bit binary data—such as images, videos, and executable files—as an ASCII text string. It prevents binary data from being corrupted when included in email, HTML, CSS, or JSON.
Embed data: lets you embed small images or font files directly in HTML or CSS, reducing the number of HTTP requests.
Safe transport: Safely carry binary data through text-based protocols such as JSON and XML.
Represent binary data as text: Makes complex binary data easy to copy, paste, store, and manage as plain text.
Uploaded files never leave your device. All processing uses your local computer.
A Data URI embeds data directly in a URL instead of referencing an external file. Add the following prefix before Base64-encoded file data: data:[MIME type];base64, before the encoded file data.
For example, you can embed a small PNG image directly in HTML like this:
Enable 'Include Data URI scheme' to add this prefix automatically when encoding a file.
Q. Is my input sent to a server?
No. All encoding and decoding is performed locally in your web browser with JavaScript only. Nothing is sent to an external server, so you can safely process confidential business data or personal information.
Q. Why do I get an 'Invalid character' error when decoding?
Base64 uses only uppercase and lowercase letters, numbers, '+', and '/'. Invalid characters such as spaces or line breaks, or incorrect '=' padding, can cause an error. Check the original code and try again.
Q. Can I use this tool commercially?
Yes. This tool is completely free for personal and business use, including commercial projects, with no usage limits.
Q. Is there a file size limit?
The practical limit depends on your device's available memory because processing runs locally in your browser. Very large files—tens of megabytes or more—may temporarily make the browser unresponsive.
Embed images: Encode a small icon or logo as Base64 and use a data URI in the CSS background-image or the HTML <img> tag.
Embed web fonts: Encode a web font such as WOFF2 as Base64 and include it in CSS @font-face to reduce external font requests.
Copy instantly: Select Copy in the top-right corner of the output to copy it to your clipboard.
Download a file: If the decoded output is a file, such as an image, select Save to download it with the original filename.
Encoding is converting the original text or file into a Base64 string, and decoding is converting the Base64 string back into readable text or original file data.
No. Base64 is not a compression method but a text encoding method for transmission, so the data size generally increases compared to the original binary. If your goal is to reduce size, use compression or format optimization tools.
People sometimes call Base64 decoding "decryption," but technically it is decoding. Base64 is not encryption; it is an encoding that represents data as text, so anyone can reverse it. Do not use Base64 to protect passwords or secrets.