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

# ES|QL SPACE function
## Syntax

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


## Parameters

<definitions>
  <definition term="number">
    Number of spaces in result.
  </definition>
</definitions>


## Description

Returns a string made of `number` spaces.

## Supported types


| number  | result  |
|---------|---------|
| integer | keyword |


## Example

```esql
ROW message = CONCAT("Hello", SPACE(1), "World!");
```


| message:keyword |
|-----------------|
| Hello World!    |