PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

URL Encode

Encodes a text so it can be used safely inside a URL, for example as a query parameter value.

URL Encode converts a text into a form that is safe to put inside a URL: spaces, &, =, /, ?, letters with diacritics and other special characters are replaced by % codes. Use it before you add a value to a query string or a path in Call API, so that a value such as Ana & Co does not break the URL.

Add the action

In the Process Designer toolbox, open String, then URLs, and pick URL Encode (or type URL Encode in the search box).

The URL Encode action properties: Input String and URL Encoded string

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Input StringInputTextYesThe text to encode. It cannot be empty.
URL Encoded stringOutputTextYesThe encoded text.

Example

Input StringURL Encoded string
Ana & CoAna%20%26%20Co
name=Ana Pop&city=Bucureศ™ti/Sector 1?name%3DAna%20Pop%26city%3DBucure%C8%99ti%2FSector%201%3F
https://example.com/a?b=1https%3A%2F%2Fexample.com%2Fa%3Fb%3D1
a-_.~ba-_.~b

Good to know

  • Encode values, not whole URLs. Every /, ?, &, = and : is encoded, so encoding https://example.com/a?b=1 gives a text that no longer works as a link. Encode each value, then build the URL around it.
  • A space becomes %20 (not +). Letters with diacritics become their UTF-8 bytes, for example ศ™ โ†’ %C8%99.
  • Letters, digits and -, _, ., ~ are not changed.
  • An empty input fails the step with the message "Exception has been thrown by the target of an invocation." Check optional values with Null Or Empty first.

On this page