---
schema_version: "1"
id: 6584aba98a9418d28daff19a118311e33a648eca0e6bf59bc55e12eb1d09bd76
title: URL (dw::core::URL)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-url.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-url
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 25c9569a19e6a8bd524f01cfdd0ec0c559b789f7ef1ddca1bdec0f4d3b390905
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# URL (dw::core::URL)

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

This module contains helper functions for working with URIs.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::core::URL` to the header of your DataWeave script.

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-url-functions-compose">compose</a></p></td><td><p>Uses a custom string interpolator to replace URL components with a <code>encodeURIComponent</code> result. You can call this function using the standard call, or a simplified version.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-url-functions-decodeuri">decodeURI</a></p></td><td><p>Decodes the escape sequences (such as <code>%20</code>) in a URI.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-url-functions-decodeuricomponent">decodeURIComponent</a></p></td><td><p>Decodes a Uniform Resource Identifier (URI) component previously created by <code>encodeURIComponent</code> or a similar routine.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-url-functions-encodeuri">encodeURI</a></p></td><td><p>Encodes a URI with UTF-8 escape sequences.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-url-functions-encodeuricomponent">encodeURIComponent</a></p></td><td><p>Escapes certain characters in a URI component using UTF-8 encoding.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-url-functions-parseuri">parseURI</a></p></td><td><p>Parses a URL and returns a <code>URI</code> object.</p></td></tr></tbody></table>

## Types

- [URL Types](https://docs.mulesoft.com/dataweave/latest/dw-url-types)
