How to Base64 Encode/Decode in the Terminal/CLI

0 min read 79 words

If you need to either Encode or Decode a Base64 value, there are many ways to achieve this, one of them is directly from your commandline itself!

How to Encode a Base64 value in CLI

echo 'This is a test' | base64

This will output a base64 encoded value of VGhpcyBpcyBhIHRlc3QK

How to Decode a Base64 value in CLI

echo VGhpcyBpcyBhIHRlc3QK | base64 --decode

This will output a decoded value from our base64 value of This is a test

Tags:
Andrew
Andrew

Andrew is a visionary software engineer and DevOps expert with a proven track record of delivering cutting-edge solutions that drive innovation at Ataiva.com. As a leader on numerous high-profile projects, Andrew brings his exceptional technical expertise and collaborative leadership skills to the table, fostering a culture of agility and excellence within the team. With a passion for architecting scalable systems, automating workflows, and empowering teams, Andrew is a sought-after authority in the field of software development and DevOps.

Tags

Recent Posts