---
schema_version: "1"
id: ae8e7951dbf3925c0020bcc7d0ae3067c6efbac9c317c4f4cf00c10810f14a5c
title: URL (dw::core::URL)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.11/dw-url.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-url
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 8ff6db75d78137553278fe081e242f6b5f242c0b1902b8f92187163740550b4e
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

# 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/2.11/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/2.11/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/2.11/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/2.11/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/2.11/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/2.11/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/2.11/dw-url-types)
