to-base64

The to-base64 operation encodes the input value into Base64. Base64 is a binary-to-text encoding scheme commonly used for transmitting binary data over text-based protocols such as HTTP.

How it works

  • Input – a string or binary value.
  • Output – the Base64-encoded representation of the input.
  • If the input is empty or cannot be processed, the result is an empty string.

Examples

InputOutput
helloaGVsbG8=
12345MTIzNDU=
{“id”:1}eyJpZCI6MX0=
(empty)“ (empty string)

Usage in PalDock

Use to-base64 when you need to:

  • Encode credentials, tokens, or payloads for APIs that require Base64 (e.g. HTTP Basic Auth, JWT header encoding).
  • Safely transmit binary content (images, files) in text-only fields.
  • Normalize data into a consistent, ASCII-safe representation.

Best Practices

  • Combine to-base64 with prefix to build Authorization headers, e.g. Bearer {token}.
  • Ensure that the receiving API expects Base64 — do not use this operation unless the integration specifically requires it.
  • Be aware that Base64 increases data size by ~33%, so avoid using it for very large payloads unless necessary.

References

Related articles

Modify Field > combine
Modify Field > urldecode
Modify Field > urlencode
Modify Field > load-from-lead
Modify Field > regex-replace
Modify Field > from-base64
Modify Field > modify-date
Modify Field > format-date
Modify Field > do-not-send
Modify Field > first-regex-match

Insights that
helps you grow