Commands
Base64
Documentation for the /base64 command to encode and decode strings in Base64
/base64
Command
The /base64
command provides tools to encode and decode strings in Base64.
Available Subcommands
/base64 encode
Encodes a string to Base64.
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
input | The string to encode | Yes | Discord (parameter), Slack (directly after action) |
Example
Result: SGVsbG8sIHdvcmxkIQ==
/base64 decode
Decodes a Base64 string.
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
input | The Base64 string to decode | Yes | Discord (parameter), Slack (directly after action) |
Example
Result: Hello, world!
/base64 encode-component
Encodes a string to URL-safe Base64.
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
input | The string to encode in URL-safe format | Yes | Discord (parameter), Slack (directly after action) |
Example
Result: SGVsbG8sIHdvcmxkIQ==
(with URL-safe characters)
/base64 url-safe
Converts a Base64 string to URL-safe version and vice versa.
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
input | The Base64 string to convert | Yes | Discord (parameter), Slack (directly after action) |
Example
Platform-Specific Implementation
Discord Implementation
- Commands use Discord’s named parameter system (e.g.,
input:
) - Responses appear in the channel where the command is invoked
Slack Implementation
- Commands use a simpler format without named parameters
- Input text is provided directly after the action
- Responses are shown with formatted blocks showing input and output
Use Cases
- Encode binary data as text for sharing
- Decode received Base64 strings
- Prepare data for use in URLs
- Encode/decode authentication tokens
Notes
- Base64 encoding increases data size by about 33%
- Very long strings may be truncated in chat display