ENCODEURL Function in Excel: Make Text Safe for a URL

⏱ 1 min readUpdated 28 September 2026

TextLevel: IntermediateAvailable in: Excel 2013+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

ENCODEURL converts spaces and symbols into URL codes (%20 and so on).

Syntax

=ENCODEURL(text)
Argument What it means
text Text to encode.

Examples

Example 1

=HYPERLINK("https://www.google.com/maps/search/"&ENCODEURL(B2), "Map")

A map link for each address.

HYPERLINK · WEBSERVICE

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong