# ENCODEURL Function

> Percent-encode text for use in a URL with the ENCODEURL formula function of TX Sheet Control: spaces, reserved characters, UTF-8 bytes and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > ENCODEURL Function
- **172 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/encodeurl/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/encodeurl/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/encodeurl/llms-full.txt

---

Encode a text for use in a URL. ENCODEURL replaces spaces, reserved characters such as `&`, `/` and `?`, and non-ASCII characters with percent-encoded UTF-8 bytes.

### Syntax

```text
ENCODEURL(text)
```

Category: Text. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=ENCODEURL("a b&c")
```

The formula returns the text a%20b%26c.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [EFFECT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/effect/llms-full.txt)
- **Next:** [EOMONTH Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/eomonth/llms-full.txt)
