WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

URLQueryEncode [key1val1,key2val2,]

creates a URL-style query string from an association of keys and values.

URLQueryEncode [{param1val1,param2val1,}]

creates a query string from a list of rules.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Options  
CharacterEncoding  
SortQueries  
RemoveEmptyQueries  
Possible Issues  
See Also
Related Guides
Related Workflows
History
Cite this Page

URLQueryEncode [key1val1,key2val2,]

creates a URL-style query string from an association of keys and values.

URLQueryEncode [{param1val1,param2val1,}]

creates a query string from a list of rules.

Details and Options

Examples

open all close all

Basic Examples  (4)

Encode a list of parameters:

Use Missing or None to represent a missing parameter value:

Nested lists are flattened:

URL and CloudObject can be encoded as values:

Options  (3)

CharacterEncoding  (1)

Percent encode with a specified encoding:

SortQueries  (1)

Sort query parameters by using "SortQueries":

RemoveEmptyQueries  (1)

Remove empty parameters by using "RemoveEmptyQueries":

Possible Issues  (1)

Repeated keys are not supported by Association :

To specify multiple values, collect them in a list:

Alternatively, use a list of rules:

See Also

URLQueryDecode   URLBuild   URLEncode   URLDecode   URLParse   URLExecute   URLRead

Interpreter Types: URLString   URLQueryString

Related Workflows

Wolfram Research (2014), URLQueryEncode, Wolfram Language function, https://reference.wolfram.com/language/ref/URLQueryEncode.html (updated 2016).

Text

Wolfram Research (2014), URLQueryEncode, Wolfram Language function, https://reference.wolfram.com/language/ref/URLQueryEncode.html (updated 2016).

CMS

Wolfram Language. 2014. "URLQueryEncode." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/URLQueryEncode.html.

APA

Wolfram Language. (2014). URLQueryEncode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/URLQueryEncode.html

BibTeX

@misc{reference.wolfram_2025_urlqueryencode, author="Wolfram Research", title="{URLQueryEncode}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/URLQueryEncode.html}", note=[Accessed: 17-November-2025]}

BibLaTeX

@online{reference.wolfram_2025_urlqueryencode, organization={Wolfram Research}, title={URLQueryEncode}, year={2016}, url={https://reference.wolfram.com/language/ref/URLQueryEncode.html}, note=[Accessed: 17-November-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /