---
url: /cube-functions/urlencode.md
description: Returns the input string after encoding URL entities
---

# URLENCODE

Returns the input string after encoding URL entities

```js
URLENCODE(input_string)
```

#### Parameters

* `input_string` - The input to encode.

#### Examples

```js
John & Jane
```

**Result:** `"John%20%26%20Jane"`
