> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.firebolt.io/feedback

```json
{
  "path": "/reference-sql/functions-reference/string/reverse",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

> Reference material for REVERSE function

# REVERSE

Returns the input string with all characters in reverse order.

## Syntax

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
REVERSE(<expression>)
```

## Parameters

| Parameter      | Description                | Supported Input Types |
| :------------- | :------------------------- | :-------------------- |
| `<expression>` | The string to be reversed. | `TEXT`                |

## Return Type

`TEXT`

## Examples

Reverse a simple text string:

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT REVERSE('esimpson');
```

**Returns**: `'nospmise'`

Reverse a string containing emoji characters:

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT REVERSE('👋🌍');
```

**Returns**: `'🌍👋'`
