/base64 Command

The /base64 command provides tools to encode and decode strings in Base64.

Available Subcommands

/base64 encode

Encodes a string to Base64.

Usage

/base64 encode input: <text>

Options

OptionDescriptionRequiredPlatform
inputThe string to encodeYesDiscord (parameter), Slack (directly after action)

Example

/base64 encode input: Hello, world!

Result: SGVsbG8sIHdvcmxkIQ==

/base64 decode

Decodes a Base64 string.

Usage

/base64 decode input: <Base64 string>

Options

OptionDescriptionRequiredPlatform
inputThe Base64 string to decodeYesDiscord (parameter), Slack (directly after action)

Example

/base64 decode input: SGVsbG8sIHdvcmxkIQ==

Result: Hello, world!

/base64 encode-component

Encodes a string to URL-safe Base64.

Usage

/base64 encode-component input: <text>

Options

OptionDescriptionRequiredPlatform
inputThe string to encode in URL-safe formatYesDiscord (parameter), Slack (directly after action)

Example

/base64 encode-component input: Hello, world!

Result: SGVsbG8sIHdvcmxkIQ== (with URL-safe characters)

/base64 url-safe

Converts a Base64 string to URL-safe version and vice versa.

Usage

/base64 url-safe input: <Base64 string>

Options

OptionDescriptionRequiredPlatform
inputThe Base64 string to convertYesDiscord (parameter), Slack (directly after action)

Example

/base64 url-safe input: SGVsbG8sIHdvcmxkIQ==

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