---
title: ES|QL TO_STRING function
description: 
url: https://www.elastic.co/docs/reference/query-languages/esql/functions-operators/type-conversion-functions/to_string
products:
  - Elasticsearch
---

# ES|QL TO_STRING function
## Syntax

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


## Parameters

<definitions>
  <definition term="field">
    Input value. The input can be a single- or multi-valued column or an expression.
  </definition>
</definitions>


## Description

Converts an input value into a string.

## Supported types


| field                                                                        | result  |
|------------------------------------------------------------------------------|---------|
| aggregate_metric_double                                                      | keyword |
| boolean                                                                      | keyword |
| cartesian_point                                                              | keyword |
| cartesian_shape                                                              | keyword |
| date                                                                         | keyword |
| date_nanos                                                                   | keyword |
| dense_vector                                                                 | keyword |
| double                                                                       | keyword |
| exponential_histogram <applies-to>Elastic Stack: Preview in 9.3</applies-to> | keyword |
| geo_point                                                                    | keyword |
| geo_shape                                                                    | keyword |
| geohash                                                                      | keyword |
| geohex                                                                       | keyword |
| geotile                                                                      | keyword |
| histogram <applies-to>Elastic Stack: Preview in 9.3</applies-to>             | keyword |
| integer                                                                      | keyword |
| ip                                                                           | keyword |
| keyword                                                                      | keyword |
| long                                                                         | keyword |
| text                                                                         | keyword |
| unsigned_long                                                                | keyword |
| version                                                                      | keyword |


## Examples

```esql
ROW a=10
| EVAL j = TO_STRING(a)
```


| a:integer | j:keyword |
|-----------|-----------|
| 10        | "10"      |

It also works fine on multivalued fields:
```esql
ROW a=[10, 9, 8]
| EVAL j = TO_STRING(a)
```


| a:integer  | j:keyword        |
|------------|------------------|
| [10, 9, 8] | ["10", "9", "8"] |