base64¶
Base64 encode or decode data.
Synopsis¶
Description¶
Encode data to base64 or decode base64 data. Supports standard and URL-safe alphabets, with or without padding.
Flags¶
| Flag | Short | Description | Default |
|---|---|---|---|
--decode |
-d |
Decode data | false |
--url-safe |
-u |
Use URL-safe character set | false |
--no-padding |
-r |
No padding characters (raw) | false |
--alphabet |
-a |
Alphabet: standard, url, or custom 64-char string |
standard |
Examples¶
Encode a string:
Decode base64:
Encode a file:
URL-safe encoding:
Raw encoding (no padding):
Decode from multiple files:
Notes¶
- Standard alphabet uses
+and/ - URL-safe alphabet uses
-and_ - When decoding, the tool handles both padded and unpadded input