Forrest logo
back to the base64 tool

base64:tldr:1fd5e

base64: Decode the base64 contents of a file and write the result to `stdout`.
$ base64 --decode ${filename}
try on your machine

The command "base64 --decode ${filename}" is used to decode a base64-encoded file.

Here's a breakdown of each element in the command:

  • "base64" is the command-line utility for handling base64 encoding and decoding.
  • "--decode" is an option passed to the base64 command, indicating that we want to decode the input.
  • "${filename}" is a placeholder for the name of the file that you want to decode. This should be replaced with the actual filename or path.

When you run this command, the base64 utility will read the specified file, interpret its contents as base64-encoded data, and then decode it back into its original format. The resulting output will be written to the console or another specified output location.

Make sure you have the base64 utility installed on your system, as it might not be available by default on some platforms.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the base64 tool