---
title: "URLDECODE"
description: "The URLDECODE SQL function of Invantive UniversalSQL decodes a URL-encoded text."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/urldecode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/urldecode
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

## 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 (`varchar2`): 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%3fpage%252dxx')

----------------------------
https://www.nu.nl/?page%2dxx
```
The following example retrieves `null` since the input is `null`:
```sql
select urldecode(null)

----------------------------

```