Completely converts every byte between text and files.
Enable JavaScript for interactive processing. You can read the instructions, limits, and FAQs below without it. Files are processed only in your browser.
File Base64 Encoder & DecoderUser Guide
Convert local files to standard Base64 text, or you can strictly verify Base64 and then restore the bytes into a new file; Data URL or Base64URL is not accepted.
How to use
Select file to text or text to restore file direction.
Import a single file or paste standard Base64; you can explicitly choose to ignore ASCII transmission whitespace when decoding.
Start the conversion, verify the information and copy the text or export a new copy.
Formats and limits
The maximum size of the file and restoration result is 5 MiB; the original Base64 text contains up to 8 MiB characters of white space.
Data URL prefixes, Base64URLs, invalid characters, or padding are not accepted; the restored binary will not be executed on the page.
Output
Standard Base64 TXT or restored BIN file.
Frequently asked questions
Can Base64 protect file contents?
cannot. Base64 is a reversible encoding, not encryption; the source and purpose must still be confirmed before exporting the restored file.
The file name and content are only processed in your browser and are not transmitted to the server. The original file will not be overwritten. Please export the required results before leaving the tool.