---
name: "up.Params.prototype.toURL"
area: "API"
kind: "Instance method"
parent: "up.Params class"
visibility: "experimental"
url: "https://unpoly.com/api/up.Params.prototype.toURL"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Params class](https://unpoly.com/api/up.Params.md)</nav>

# up.Params.prototype.toURL(base)

**This feature is experimental**. Please [share](https://github.com/unpoly/unpoly/discussions) your experiences so we know what to keep or change.

Builds a URL string from the given base URL and this [`up.Params`](https://unpoly.com/api/up.Params.md) instance as a [query string](https://en.wikipedia.org/wiki/Query_string).

The base URL may or may not already contain a query string. The additional query string will be joined with `&` or `?` accordingly.

---

## Parameters {#parameters}

### base {#base}

(required)

The base URL that will be prepended to this [`up.Params`](https://unpoly.com/api/up.Params.md) object as a query string.

Type: string

---

## Return value {#return-value}

The built URL.

Type: string

