Skip to main content

$(urlEncode)

$(urlEncode [text])

Encodes text so it is safe to place inside a URL (spaces, &, ?, non-ASCII characters and so on are percent-encoded). Most useful in flows when building a webhook or API URL with the Generate Text node.

Examples

$(urlEncode hello world & more)

Will display "hello%20world%20%26%20more"

https://example.com/search?q=$(urlEncode {{message}})

Will build a search URL with the chat message safely encoded