## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> URLDECODE[URLDECODE]:::quoted
URLDECODE --> End((END))
```
## Purpose
The `URLDECODE` SQL function decodes a URL.
See also [[URLENCODE]].
Parameters:
- Url: URL to decode.
Returns: the decoded URL.
## Examples
The following example decodes an URL-encoded text:
```sql
select urldecode('https%3a%2f%2fwww.nu.nl%2f%3fpagina%252dxx')
----------------------------
https://www.nu.nl/?pagina%2dxx
```