Skip to content

__urlencode

JMeter __urlencode function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.

Difficulty
intermediate
Guide type
reference
Estimated read time
1 min read
Last verified version
Verified JMeter 5.6

Also documented in context in the full Functions and Variables reference.

Function to encode a string to a application/x-www-form-urlencoded string.

For example, the string

Terminal window
\${__urlencode(Word "school" is "รฉcole" in french)}

returns Word+%22school%22+is+%22%C3%A9cole%22+in+french.

Uses Java class URLEncoder.

NameRequiredDescription
String to encodeYesString to encode in URL encoded chars.
On this page