Windows base64 Encoding and Decoding Using certutil

I ran into a scenario where I was able to upload ASCII files, but executable files were being saved improperly. A common workaround for this is to use base64 to encode the executable, transfer the encoded data, then decode it on the recipient machine.

The version of Windows I was using did not have base64 or uuencode. I was able to use “certutil” to decode my base64 encoded executable: