The base64 Command-Line Tool

Encode raw data using the base64 algorithm or decode base64-encoded data back to its raw representation.

Usage

base64 {subCommand} {arguments}

This tool uses subcommands to indicate which function you want to perform.
Jump to a list of the available subcommands.

Global Arguments

Exclusive Argument Sets

Examples

    base64 encode --data Hello
    base64 decode --inputFile encoded-data.txt --outputFile decoded-data.txt

 

Available Subcommands

 

Usage For Subcommand encode

Base64-encodes raw data.

Arguments

Exclusive Argument Sets

Examples

    base64 encode encode --data Hello
    base64 encode encode --inputFile raw-data.txt \
         --outputFile encoded-data.txt
    base64 encode encode

 

Usage For Subcommand decode

Decodes base64-encoded data.

Arguments

Exclusive Argument Sets

Examples

    base64 decode decode --data SGVsbG8=
    base64 decode decode --inputFile encoded-data.txt \
         --outputFile decoded-data.txt
    base64 decode decode