OverView

Base64 is the simple command line Windows used to encode and decode files in the “Base64” format. This code is spin-off of ‘Binary Viewer’ - much larger project where Base64 encoder/decoder is part of the package. Difference is that ‘Binary Viewer’ is ‘fat’ GUI program with plenty of functionality and base64 encoder/decoder is very small part of it, while program presented here is lean command line utility suitable to be used in automated batch processing.

Installation

Not much to do. Just download the single file program (either executable or zipped version of it). Drop it into directory of your choice and you are ready to go. Only dependency of the program is the presence of Microsoft .Net Framework 4.0

Synopsis

To encode file into Base64:

Base64[.exe] /e[ncode]   sourceFile [destinationFile]

To decode file from Base64:

Base64[.exe] /d[ecode]   sourceFile [destinationFile]

To display help information:

Base64[.exe] [/h]
Note:

If optional parameter [destinationFile] is omitted in the command line, program output will be redirected to the console window.

Example

The following screen illustrates usage of Base64.

Base64 usage example

Downloads

Base64.exe

Compiled code. Just drop it to your local folder.

Base64.zip

The same compiled code as above. If your security settings don’t allow downloading executables use this link to download the program.

Base64SourceCode.zip

C# source code of the program if you want to see how it was done (very easy) or if you want to extend/modify and build your own functionality on top of it.


Home  bullet Products  bullet Downloads  bullet About Us  bullet Contact Us

Credit Card Logo