> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# url_decode

> Translates a string back from the application/x-www-form-urlencoded format.

Translates a string back from the [application/x-www-form-urlencoded](https://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1) format. This function is an inverse of [url\_encode](/documents/4.2/sql-reference/sql-functions/string-functions/url_encode.md).

This functions is supported from v3.2.

## Syntax

```haskell theme={null}
VARCHAR url_decode(VARCHAR str)
```

## Parameters

* `str`: the string to decode. If `str` is not a string, the system will try implicit cast first.

## Return value

Returns a decoded string.

## Examples

```plaintext theme={null}
mysql> select url_decode('https%3A%2F%2Fdocs.starrocks.io%2Fdocs%2Fintroduction%2FStarRocks_intro%2F');
+------------------------------------------------------------------------------------------+
| url_decode('https%3A%2F%2Fdocs.starrocks.io%2Fdocs%2Fintroduction%2FStarRocks_intro%2F') |
+------------------------------------------------------------------------------------------+
| https://docs.starrocks.io/docs/introduction/StarRocks_intro/                             |
+------------------------------------------------------------------------------------------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.