> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# String: Base64 encode

> Takes the input string and converts it to a base64 encoded value. It can be used for example to create an identifier based on certain values in the data.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Takes the input string and converts it to a base64 encoded value. Base64 turns any text into a compact string made up only of letters, digits and a few symbols, which is safe to pass between systems. Use it when a target system expects a value in base64, or to build a stable identifier out of a value in your data. The String: Base64 decode step reverses this.

This documentation describes: [Schema](/schemas/mapper/string-base64-encode)

## Fields

This step has no settings. It takes the value it is pointed at and returns the encoded result.

## Sample data

| Field  | Value                     |
| ------ | ------------------------- |
| (none) | This step has no settings |

Input:

```json theme={null}
{ "sku": "WOOL-SCARF-01" }
```

Output:

```json theme={null}
{ "sku": "V09PTC1TQ0FSRi0wMQ==" }
```

```json Configuration theme={null}
{
  "prototype": "string-base64-encode",
  "parameters": {}
}
```
