1. Home
  2. Functions
  3. Web
  4. ENCODEURL

ENCODEURL function

Encodes text so it can be used safely inside a web address.

Syntax

=ENCODEURL(text)

Arguments

ArgumentRequiredDescription
textRequiredThe text to encode

How to use ENCODEURL

ENCODEURL takes 1 required argument. Type =ENCODEURL( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=ENCODEURL("a b&c")Result "a%20b%26c"
=ENCODEURL("http://example.com/x y")Result "http%3A%2F%2Fexample.com%2Fx%20y"

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.