---
title: "md5_number_upper function in Strata | Oplema"
description: "Read the upper 64 bits of an MD5 digest as an unsigned integer. Write it as md5_number_upper(value) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/md5-number-upper"
updated: "2026-11-04"
---

# md5\_number\_upper

Read the upper 64 bits of an MD5 digest as an unsigned integer.

## Try an expression

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

### Expression

```
md5_number_upper('abc')
```

### Result

```
'12704604231530709392'
```

The expression returns `UBIGINT`. Formula stores it as `VARCHAR` in this example. 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 | 12704604231530709392 |

## Arguments and types

```
md5_number_upper(param)
```

**param**

Any value

Supported signatures (1)

```
md5_number_upper(param: ANY)
```

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

[md5\_number\_lower

Read the lower 64 bits of an MD5 digest as an unsigned integer.

](https://oplema.com/docs/strata/functions/md5-number-lower)[ascii

Return the Unicode number of the first character in text.

](https://oplema.com/docs/strata/functions/ascii)[bit\_length

Number of bits in a string.

](https://oplema.com/docs/strata/functions/bit-length)[format\_bytes

Convert a byte count to a readable size using units based on powers of 2, such as KiB, MiB and GiB. Also available as pg\_size\_pretty.

](https://oplema.com/docs/strata/functions/format-bytes)

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

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