Cheat Sheets/Power Automate/base64ToString
Power Automate (WDL) function

base64ToStringPower Automate (WDL) function reference

Decode base64 to text.

Syntax

wdl
base64ToString(value)

Examples

wdl
base64ToString(variables('enc'))
"hello"

Common for decoding a base64-encoded JSON payload from a webhook.

wdl
json(base64ToString(triggerBody()?['data']))
A parsed object
wdl
base64ToString(items('Apply_to_each')?['contentBytes'])
The decoded text content

Common mistakes & gotchas

Related Workflow Definition Language functions

From Type conversion

← Back to the Power Automate (WDL) cheat sheet