---
title: "url_decode function in Strata | Oplema"
description: "Decode percent-encoded text from a URL back to plain text, such as %20 to a space. Write it as url_decode(string) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/url-decode"
updated: "2026-11-04"
---

# url\_decode

Turn percent codes in a URL back into the original characters.

## Try an expression

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

### Expression

```
url_decode('https%3A%2F%2Fduckdb.org%2Fwhy_duckdb%23portable')
```

### Result

```
'https://duckdb.org/why_duckdb#portable'
```

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 | https://duckdb.org/why\_duckdb#portable |

## Arguments and types

```
url_decode(string)
```

**string**

Text

Supported signatures (1)

```
url_decode(string: VARCHAR) → 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

[url\_encode

Make text safe for a URL by replacing spaces and special characters with percent codes.

](https://oplema.com/docs/strata/functions/url-encode)[array\_extract

Get one item from a list or one character from text by position, where 1 is the first. For a struct, choose a field by name, or by position in an unnamed struct.

](https://oplema.com/docs/strata/functions/array-extract)[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)[unbin

Converts a value from binary representation to a blob.

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

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

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