Linux

base64

SafeBase64 encode/decode

base64 <file>

Encodes binaries to text and back (-d) — certificates, embedded configs, and decoding K8s Secrets.

Examples

  • echo 'cGFzcw==' | base64 -dDecode a Base64 string

Syntax

base64 [-d] [file]

Before you run it

Conversion only.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store