﻿---
title: ES|QL string functions
description: ES|QL supports these string functions: 
url: https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions
products:
  - Elasticsearch
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# ES|QL string functions
ES|QL supports these string functions:
- [`BIT_LENGTH`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/bit_length)
- [`BYTE_LENGTH`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/byte_length)
- [`CHUNK`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/chunk)
- [`CONCAT`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/concat)
- [`CONTAINS`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/contains)
- [`ENDS_WITH`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/ends_with)
- [`FROM_BASE64`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/from_base64)
- [`HASH`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/hash)
- [`JSON_EXTRACT`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/json_extract)
- [`LEFT`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/left)
- [`LENGTH`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/length)
- [`LOCATE`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/locate)
- [`LTRIM`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/ltrim)
- [`MD5`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/md5)
- [`REPEAT`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/repeat)
- [`REPLACE`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/replace)
- [`REVERSE`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/reverse)
- [`RIGHT`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/right)
- [`RTRIM`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/rtrim)
- [`SHA1`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/sha1)
- [`SHA256`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/sha256)
- [`SPACE`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/space)
- [`SPLIT`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/split)
- [`STARTS_WITH`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/starts_with)
- [`SUBSTRING`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/substring)
- [`TO_BASE64`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/to_base64)
- [`TO_LOWER`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/to_lower)
- [`TO_UPPER`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/to_upper)
- [`TRIM`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/trim)
- [`URL_ENCODE`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/url_encode)
- [`URL_ENCODE_COMPONENT`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/url_encode_component)
- [`URL_DECODE`](https://www.elastic.co/elastic/docs-builder/docs/2821/reference/query-languages/esql/functions-operators/string-functions/url_decode)