﻿---
title: ES|QL FROM_BASE64 function
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/3028/reference/query-languages/esql/functions-operators/string-functions/from_base64
products:
  - Elasticsearch
---

# ES|QL FROM_BASE64 function
## Syntax

![Embedded](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/query-languages/esql/images/functions/from_base64.svg)


## Parameters

<definitions>
  <definition term="string">
    A base64 string.
  </definition>
</definitions>


## Description

Decode a base64 string.

## Supported types


| string  | result  |
|---------|---------|
| keyword | keyword |
| text    | keyword |


## Example

```esql
ROW a = "ZWxhc3RpYw=="
| EVAL d = FROM_BASE64(a)
```


| a:keyword    | d:keyword |
|--------------|-----------|
| ZWxhc3RpYw== | elastic   |