-
See Also
- URLDecode
- URLQueryEncode
- URLBuild
- URLParse
- FromCharacterCode
- Transliterate
-
- Interpreter Types
- URLString
- URLQueryString
- Related Guides
- Workflows
URLEncode["string"]
converts "string" into a URL-style, percent-encoded ASCII string.


URLEncode
URLEncode["string"]
converts "string" into a URL-style, percent-encoded ASCII string.
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 all close allBasic Examples (4)
Encode string with percent encoding using specified encoding:
URLEncode threads over lists:
None or Missing is transformed into an empty string:
Integers and machine-precision numbers are converted into strings:
URL or CloudObject can be used:
See Also
URLDecode URLQueryEncode URLBuild URLParse FromCharacterCode Transliterate
Interpreter Types: URLString URLQueryString
Function Repository: ImageToDataURI
Related Workflows
- Construct a URL Query String ▪
- Enter Special Characters
Text
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.
APA
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: 14-August-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: 14-August-2025]}