---
title: "md5_number function in Strata | Oplema"
description: "Return the MD5 hash of text or binary data as a UHUGEINT number. Write it as md5_number(value) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/md5-number"
updated: "2026-11-04"
---

# md5\_number

Return the MD5 hash of text or binary data as a UHUGEINT number.

## Try an expression

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

### Expression

```
md5_number('abc')
```

### Result

```
'152195979970564155685860391459828531600'
```

The expression returns `UHUGEINT`. 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 | 152195979970564155685860391459828531600 |

## Arguments and types

```
md5_number(value) → UHUGEINT
```

**string**

Text

**blob**

Binary data

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

Calculate the MD5 hash of text or binary data, returned as hexadecimal text.

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

Return the Unicode number of the first character in text.

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

Check whether text contains a search string. It also checks a list for an item, a map for a key and an unnamed struct for a value.

](https://oplema.com/docs/strata/functions/contains)[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#md5_numberstring)

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