# BYTE_LENGTH

This function calculates the byte length of a given string.

## Syntax

`BYTE_LENGTH(string)`

### Parameters

#### string

The text string for which the byte length is to be determined. If `null` is provided, the function will return `null`.

## Examples

```esql
FROM airports
| WHERE country == "India"
| KEEP city
| EVAL fn_length = LENGTH(city), fn_byte_length = BYTE_LENGTH(city)
```
