FG
💻 Software

How to encode base64 via command line in macOS/OS X?

Fresh5 days ago
Mar 15, 2026676870 views
Confidence Score1%
1%

Problem

Is there a terminal command in macOS/OS X which will base64 encode a file or stdin?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to encode base64 via command line in macOS/OS X?

Low Risk

can do this for you, and it's all installed with OS X by default; no need to install darwinports. Without the option reads from stdin

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment