---
schema_version: "1"
id: a1a7df2ce782a4c69b52872080c1699a9420c292858742ebb979db9b75dbad05
title: decodeURI
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-url-functions-decodeuri.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-url-functions-decodeuri
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 3d8991f5b216d2951d9381c54349eb08a53f4b44c045229f1ec89e7415bcb397
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# 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"
}
```
