# Base64 Decode transform action

## Use case

An API has returned a value that is base64 encoded and you would like to decode it.

## Overview

Decode a base64 encoded string.

## Parameters

<table><thead><tr><th width="217">Parameter</th><th width="417.3333333333333">Description</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>String</td><td>String to decode.</td><td>true</td></tr><tr><td>URL Safe</td><td>Whether the base64-encoded has been encoded in URL-safe format.</td><td>false</td></tr><tr><td>As Bytes</td><td>Whether to return the raw bytes, instead of decoding the bytes as a UTF-8 string.</td><td>false</td></tr></tbody></table>

## Usage

<details>

<summary>Example 1: Decoding a String</summary>

Inputs:\
\*\*String\*\*: VGhpcyBAaXMgbXkgdGVzdCBzdHJpbmcteWVlZWVoYXc=\
\*\*URL Safe\*\*: false\
\*\*As Bytes\*\*: false

</details>

## Results output

Result of Example 1:

```
This @is my test string-yeeeehaw
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rewst.help/documentation/automations/actions-in-rewst/transform-actions/base64-decode-transform-action.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
