# How to Encode Column Data as Base64

**URL:** <https://community.exploratory.io/t/how-to-encode-column-data-as-base64/3871>\
**Category:** HowTo\
**Created:** [March 10, 2025, 4:35pm UTC](https://community.exploratory.io/t/how-to-encode-column-data-as-base64/3871 "2025-03-10T16:35:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user1](https://community.exploratory.io/user_avatar/community.exploratory.io/user1/32/11_2.png) [@user1](https://community.exploratory.io/u/user1)\
**Post date:** [March 10, 2025, 4:35pm UTC](https://community.exploratory.io/t/how-to-encode-column-data-as-base64/3871/1 "2025-03-10T16:35:07Z")

</div>

## What You Want to Do

I want to encode the string data in a column as Base64.

## Solution

For example, to encode string data in a “name” column as Base64 in Exploratory, follow these steps:

1. Add a **Create Calculation** step.
2. Enter the following code in the Calculation Editor:

```r
sapply(name, function(x) base64enc::base64encode(charToRaw(x)))

```

3. **Run** the calculation and check the encoded results.

By following these steps, you can successfully encode the string data in a specified column as Base64.
