Base64 Toolkit
Base64 encoding and decoding toolkit. Encode/decode text, URL-safe Base64, and image to Base64 conversion.
Latest: v1.0.0
Initial release of base64-toolkit.
- Provides commands to encode and decode Base64 text.
- Supports URL-safe Base64 encoding and decoding.
- Includes image-to-Base64 data URI conversion.
- Offers command-line usage with input options for strings or files.
- Useful for API authentication, data transmission, and embedding images as data URIs.
Base64 Toolkit
A comprehensive Base64 encoding and decoding tool for developers.
Features
- Encode - Convert text to Base64
- Decode - Convert Base64 back to text
- URL-Safe - URL-safe Base64 encoding (+/- instead of /+)
- Image to Base64 - Convert images to Base64 data URI
Usage
python3 skills/base64-toolkit/scripts/base64_toolkit.py <action> [options]
Actions
| Action | Description |
|---|---|
encode | Encode text to Base64 |
decode | Decode Base64 to text |
encode-url | URL-safe Base64 encoding |
decode-url | URL-safe Base64 decoding |
image-encode | Convert image to Base64 data URI |
Options
| Option | Type | Default | Description |
|---|---|---|---|
--input | string | - | Input string or file path |
--file | bool | false | Treat input as file path |
Examples
# Encode text
python3 skills/base64-toolkit/scripts/base64_toolkit.py encode --input "Hello, World!"
# Decode Base64
python3 skills/base64-toolkit/scripts/base64_toolkit.py decode --input "SGVsbG8sIFdvcmxkIQ=="
# URL-safe encode
python3 skills/base64-toolkit/scripts/base64_toolkit.py encode-url --input "Hello+World?"
# URL-safe decode
python3 skills/base64-toolkit/scripts/base64_toolkit.py decode-url --input "SGVsbG8rV29ybGQ_"
# Image to Base64
python3 skills/base64-toolkit/scripts/base64_toolkit.py image-encode --input /path/to/image.png
Use Cases
- API authentication - Encode credentials for Basic Auth
- Data transmission - Safely transmit binary data as text
- URL parameters - Use URL-safe Base64 in URLs
- Image embedding - Embed images in HTML/CSS as data URIs
- JWT tokens - Decode and inspect JWT payload
Current Status
Ready for testing.
