---
title: std.strrev
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/strings/std-strrev
---

```
STRING std.strrev(STRING s)
```

**Available in:** all subroutines

Reverses the given string. This function does not support UTF-8 encoded strings.

## Errors

This function will set `fastly.error` to
`EUTF8` if the input string `s` is UTF-8 encoded.

## Example

```vcl
declare local var.s STRING;
set var.s = std.strrev("abc"); # produces "cba"
```
