URLEncode
✖
URLEncode
Details and Options

- The string in URLEncode can include any Unicode characters.
- Any non-ASCII or reserved character is represented by its hexadecimal character code with a % prepended.
- URLEncode has option CharacterEncoding, which specifies the character encoding to be used to generate character codes. The default setting is "UTF-8".
- The first argument of URLEncode can be a string, a number, or the following special forms:
-
None,Null,Missing "" True "true" False "false" URL["url"],CloudObject["url"] the encode form of "url"
Examples
open allclose allBasic Examples (4)Summary of the most common use cases
Encode string with percent encoding using specified encoding:
In[1]:=1

✖
https://wolfram.com/xid/0bni6llqe9ltg-le734b
Out[1]=1

URLEncode threads over lists:
In[1]:=1

✖
https://wolfram.com/xid/0bni6llqe9ltg-t5oidj
Out[1]=1

None or Missing is transformed into an empty string:
In[1]:=1

✖
https://wolfram.com/xid/0bni6llqe9ltg-bg1ev6
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bni6llqe9ltg-f3ovws
Out[2]=2

Integers and machine-precision numbers are converted into strings:
In[3]:=3

✖
https://wolfram.com/xid/0bni6llqe9ltg-4mgn9r
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0bni6llqe9ltg-528z88
Out[4]=4

URL or CloudObject can be used:
In[1]:=1

✖
https://wolfram.com/xid/0bni6llqe9ltg-wogdn2
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bni6llqe9ltg-dn7o2
Out[2]=2

Wolfram Research (2014), URLEncode, Wolfram Language function, https://reference.wolfram.com/language/ref/URLEncode.html (updated 2016).
✖
Wolfram Research (2014), URLEncode, Wolfram Language function, https://reference.wolfram.com/language/ref/URLEncode.html (updated 2016).
Text
Wolfram Research (2014), URLEncode, Wolfram Language function, https://reference.wolfram.com/language/ref/URLEncode.html (updated 2016).
✖
Wolfram Research (2014), URLEncode, Wolfram Language function, https://reference.wolfram.com/language/ref/URLEncode.html (updated 2016).
CMS
Wolfram Language. 2014. "URLEncode." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/URLEncode.html.
✖
Wolfram Language. 2014. "URLEncode." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/URLEncode.html.
APA
Wolfram Language. (2014). URLEncode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/URLEncode.html
✖
Wolfram Language. (2014). URLEncode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/URLEncode.html
BibTeX
✖
@misc{reference.wolfram_2025_urlencode, author="Wolfram Research", title="{URLEncode}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/URLEncode.html}", note=[Accessed: 19-June-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_urlencode, organization={Wolfram Research}, title={URLEncode}, year={2016}, url={https://reference.wolfram.com/language/ref/URLEncode.html}, note=[Accessed: 19-June-2025
]}