# How to convert a Base64 file to Binary

**URL:** https://community.synatic.com/t/how-to-convert-a-base64-file-to-binary/179
**Category:** Calculators
**Tags:** calculator, helper-functions
**Created:** [February 1, 2022, 9:45am UTC](https://community.synatic.com/t/how-to-convert-a-base64-file-to-binary/179 "2022-02-01T09:45:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![navessa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.synatic.com/navessa/32/58_2.png) [@navessa](https://community.synatic.com/u/navessa)
#### Post date: [February 1, 2022, 9:45am UTC](https://community.synatic.com/t/how-to-convert-a-base64-file-to-binary/179/1 "2022-02-01T09:45:46Z")

</div>

Illustrated below is an example of a flow with the Record Generator as the source step and the HTTP Service step as the destination step.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/8862c03f62f111eb42f576ab90c4a868e9d4713e.png)

The image below is the Record Generator step which is populated with the Base64 string record.

![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/fd6c9747887b5ca4c0868b0482463dc894f7d94e.png)

Illustrated in the image below is the code that is used in the Calculator step.

![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/c525c13f6c31ff5640e50a540fad84143aa409f2.png)

Below is the code to copy and paste in the Calculator step:

let inputRecord=input.record;  
return createBuffer(inputRecord.base64File,‘base64’)

[Byte Buffers in Calculators](https://community.synatic.com/t/byte-buffers-in-calculators/60)

[How to use the Byte Group step](https://community.synatic.com/t/how-to-convert-a-file-to-a-base64-string-from-an-email-trigger/181)
