---
title: "chr function in Strata | Oplema"
description: "Get the character for an ASCII or Unicode code point, such as A from 65. Write it as chr(code_point) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/chr"
updated: "2026-11-04"
---

# chr

Returns a character which corresponds to the ASCII code value or Unicode code point.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **VARCHAR**.

### Expression

```
chr(65)
```

### Result

```
'A'
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | A |

## Arguments and types

```
chr(code_point)
```

**code\_point**

Number

Supported signatures (1)

```
chr(code_point: INTEGER) → VARCHAR
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[ascii

Return the Unicode number of the first character in text.

](https://oplema.com/docs/strata/functions/ascii)[unicode

Returns an INTEGER representing the unicode codepoint of the first character in the string.

](https://oplema.com/docs/strata/functions/unicode)[greatest

Return the largest of its arguments, ignoring missing values. Text is compared by character, so lowercase letters count as larger than uppercase letters.

](https://oplema.com/docs/strata/functions/greatest)[hash

Calculate a numeric hash of one or more values. It isn't a cryptographic hash, so don't use it for security.

](https://oplema.com/docs/strata/functions/hash)

[Browse text](https://oplema.com/docs/strata/functions#text) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/text.html#chrcode_point)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
