---
title: "base64Decode"
canonical: "https://support.appfire.com/space/PSCONF/15305450/base64Decode"
format: markdown
---
> Macro (aura-html)


 > Macro (button-handy)




> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | base64Decode(textToDecode) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Decodes from Base64. This is useful when transferring data like retrieving images stored in a database.

Decodes from Base64. This is useful when transferring data like retrieving images stored in a database.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | textToDecode | String | Yes | Text to decode from Base64. |

## Return Type

**String**

Returns the input text decoded from base64

## Example

```javascript
return base64Decode("RW5jb2RlIHRoaXMgdGV4dCE=");
```

Returns "Encode this text!"

## See also

> Macro (contentbylabel)