---
schema_version: "1"
id: edaa98b48957a08feae11a6e09c3ed31e54f5e0686abfbcd551bf2e4fc950da5
title: decodeURI
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.9/dw-url-functions-decodeuri.md
canonical_url: https://docs.mulesoft.com/dataweave/2.9/dw-url-functions-decodeuri
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 28ed075c95a13c3a9e5d01b7a508ce4a3dd94d7dde5038ce296b5d00f83628f7
description: MuleSoft Documentation Site
release: "2.9"
latest: false
---
---
product: DataWeave
version: 2.9
---

# decodeURI

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## decodeURI(text: String): String

Decodes the escape sequences (such as `%20`) in a URI.

The function replaces each escape sequence in the encoded URI with the character that it represents,
but does not decode escape sequences that could not have been introduced by `encodeURI`. The
character `#` is not decoded from escape sequences.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>text</code></p></td><td><p>The URI to decode.</p></td></tr></tbody></table>

### Example

This example decodes a URI that contains the URL percent encoding `%20`, which is used for spaces.

#### Source

```DataWeave
%dw 2.0
import * from dw::core::URL
output application/json
---
{
  "decodeURI" : decodeURI('http://asd/%20text%20to%20decode%20/text')
}
```

#### Output

```JSON
{
  "decodeURI": "http://asd/ text to decode /text"
}
```
