Skip to main content

b64-clip

Base64 encode/decode with clipboard, zero dependencies.

Encode auth tokens, config values, certificate data, and more — result is automatically copied to your clipboard.

Install

pip install b64-clip

Or run directly (no install):

python3 b64_clip.py encode "hello world"

Usage

# Encode a string
b64-clip encode "hello world"
# Output: aGVsbG8gd29ybGQ=
# (also copied to clipboard)

# Decode a string
b64-clip decode "aGVsbG8gd29ybGQ="
# Output: hello world
# (also copied to clipboard)

# Encode a file
b64-clip encode --file cert.pem

# Decode a file
b64-clip decode --file encoded.txt

# Pipe from stdin
echo "test" | b64-clip encode

# URL-safe base64 decode
b64-clip decode --url-safe "PDw_Pz4-"

What it does

  • Encode: Takes any input (string, file, or stdin) and outputs base64
  • Decode: Takes base64 input and outputs the decoded plaintext
  • Clipboard: Automatically copies the result to your clipboard on macOS, Linux (xclip/wl-copy), and Windows (clip.exe)
  • Zero dependencies: Python stdlib only — no pip install needed at runtime

Requirements

  • Python 3.11+
  • For clipboard support: xclip on Linux (install with sudo apt install xclip), pbcopy on macOS (built-in), clip.exe on Windows (built-in)

Security

Nothing is logged or stored. The tool processes data in memory only and does not write any temporary files or make network requests.

License

MIT

Metadata

Release files for b64-clip 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for b64-clip 1.0.0
File Size Uploaded Provenance
b64_clip-1.0.0.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for b64-clip 1.0.0
File Interpreter ABI Platform
b64_clip-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / b64_clip-1.0.0.tar.gz

Download URL b64_clip-1.0.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
72a7fe4609841636a891bbf59ddbcdb69c863448209a57be9bcd796abf591add
BLAKE2b-256 checksum
How to use checksums
0145943dc0f9b819251951851af90baa8e6bde8eab1470658fa35c03e949c35b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / b64_clip-1.0.0-py3-none-any.whl

Download URL b64_clip-1.0.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c329228500c5785ae4b7a0be55321899d0235439de75bb3c52e1ba69656f7e1d
BLAKE2b-256 checksum
How to use checksums
11e26a52a55c9cd6ab9300b6279157326f72369eb638cf68b32e54120ddbdbdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for b64-clip 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page