-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux base64 Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to base64 on Linux, covering Arch Linux, CachyOS, and other distributions including encoding, decoding, and data conversion.
Basic usage:
# Encode text
echo "Hello World" | base64
# Encodes text to base64Decode:
# Decode base64
echo "SGVsbG8gV29ybGQ=" | base64 -d
# -d = decode (decodes base64)Text encoding:
# Encode string
echo "Hello World" | base64
# Output: SGVsbG8gV29ybGQ=File encoding:
# Encode file
base64 file.txt
# Encodes file contentText decoding:
# Decode string
echo "SGVsbG8gV29ybGQ=" | base64 -d
# Output: Hello WorldFile decoding:
# Decode file
base64 -d encoded.txt > decoded.txt
# Decodes and saves to fileSave encoded:
# Encode and save
base64 file.txt > encoded.txt
# Saves encoded contentSave decoded:
# Decode and save
base64 -d encoded.txt > decoded.txt
# Saves decoded contentCheck installation:
# base64 is part of coreutils
# Usually pre-installed
# Check base64
which base64This guide covered base64 usage, encoding, decoding, and data conversion for Arch Linux, CachyOS, and other distributions.
- gpg Guide - Encryption
- Security Configuration - Security setup
-
base64 Documentation:
man base64
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.