← Back to tools

base64-tool

Encode and decode Base64 data with CLI and JSON output support

Base64 Encoder/Decoder

Usage

python3 main.py [OPTIONS]

Options:
  --encode, -e     Encode input to base64
  --decode, -d     Decode input from base64
  --input, -i      Input string (default: read from stdin)
  --output, -o     Output file (default: stdout)
  --json           Output in JSON format

Examples:
  python3 main.py --encode --input "hello world"
  python3 main.py --decode --input "aGVsbG8gd29ybGQ="
  echo "hello" | python3 main.py --encode

Safety

Read-only, no external dependencies, safe for all inputs