> For the complete documentation index, see [llms.txt](https://upsolver.gitbook.io/content/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://upsolver.gitbook.io/content/reference-1/functions-and-operators/functions/url/url_decode.md).

# URL\_DECODE

Unescapes the given URL encoded value.&#x20;

This function is the inverse of [`URL_ENCODE`](/content/reference-1/functions-and-operators/functions/url/url_encode.md).

url\_decode(*value*) → varchar

Unescapes the URL encoded `value`. This function is the inverse of [`url_encode()`](https://prestodb.io/docs/current/functions/url.html#url_encode).

## Syntax

```sql
URL_DECODE(VALUE)
```

## Arguments

#### `VALUE`

Type: `string`

A URL encoded value.

## Returns

Type: `string`

The decoded `VALUE`.

***

## Examples

"SELECT url\_decode('The+quick+brown+fox') = 'The quick brown fox' AND url\_decode('Comment+%235') = 'Comment #5' AND url\_decode('%26%24%23\_line\_%21123') = '&$#*line*!123' AND url\_decode('') = '' AND url\_decode('word%2Bword++word') = 'word+word word'"

| VALUE                   | Output              |
| ----------------------- | ------------------- |
| The+quick+brown+fox     | The quick brown fox |
| Comment+%235            | Comment #5          |
| %26%24%23\_line\_%21123 | &$#\_line\_!123     |
| `''`                    | `''`                |
| word%2Bword++word       | word+word word      |

### Transformation job example

#### SQL

```sql
CREATE JOB function_operator_example
    ADD_MISSING_COLUMNS = true	
AS INSERT INTO default_glue_catalog.upsolver_samples.orders_transformed_data 
  MAP_COLUMNS_BY_NAME
    SELECT 
        URL_DECODE('The+quick+brown+fox') AS url_example1,
        URL_DECODE('Comment+%235') AS url_example2
    FROM default_glue_catalog.upsolver_samples.orders_raw_data 
    WHERE $commit_time BETWEEN run_start_time() AND run_end_time()
    LIMIT 1;
```

#### Query result

| url\_example1       | url\_example2 |
| ------------------- | ------------- |
| The quick brown fox | Comment #5    |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://upsolver.gitbook.io/content/reference-1/functions-and-operators/functions/url/url_decode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
