Decode

Cryptography Pure
Decode
Text
Result
Algorithm BASE64

Description

Pure function decoding text using the selected algorithm. Base64 expects the standard Base64 alphabet; URL expects application/x-www-form-urlencoded encoding.

When to use

Use Decode to reverse an encoding applied by an external system. Base64 decoding is common when reading payloads from webhooks or APIs that embed data as Base64 strings. URL decoding is useful when extracting values from query strings or form-encoded request bodies.

Pins

Input pins

Pin Type Default Notes
Text string The encoded text to decode.
Algorithm enum BASE64 The decoding algorithm to use. Must match the encoding that was originally applied.

Output pins

Pin Type Notes
Result string The decoded text.

Example

Decode a Base64-encoded payload from an incoming webhook. Read the request body with Stream to string, then wire the Value output into the Text input of Decode with Algorithm set to Base64. The Result output contains the original decoded content, ready for further processing or parsing.

See also