# How to URL an encode string

**URL:** <https://forum.uipath.com/t/how-to-url-an-encode-string/172964>\
**Category:** Help\
**Tags:** error, studio, web\
**Created:** [November 30, 2019, 6:56am UTC](https://forum.uipath.com/t/how-to-url-an-encode-string/172964 "2019-11-30T06:56:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tech\_Guru](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/tech_guru/32/379595_2.png) [@Tech\_Guru](https://forum.uipath.com/u/Tech_Guru)\
**Post date:** [November 30, 2019, 6:56am UTC](https://forum.uipath.com/t/how-to-url-an-encode-string/172964/1 "2019-11-30T06:56:17Z")

</div>

I want to URL encode a string. How to do this ??

I tried system.web.httputility.urlencode(URL)

But this function cause error.

[https://forum.uipath.com/t/httputility-is-not-a-member-function-of-web-error-in-url-encode-decode/172943/19](https://forum.uipath.com/t/httputility-is-not-a-member-function-of-web-error-in-url-encode-decode/172943/19)

Is there any otherway in UiPath to for URL encode ?

Thanks  
@Rajv2e12609 @aberenguer @debo2696

---

<div class="post-metadata">

**Author:** ![AshwinS2](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashwins2/32/176686_2.png) [@AshwinS2](https://forum.uipath.com/u/AshwinS2)\
**Post date:** [November 30, 2019, 10:23am UTC](https://forum.uipath.com/t/how-to-url-an-encode-string/172964/2 "2019-11-30T10:23:04Z")

</div>

Hi @Tech_Guru  
Use strvar=System.Web.HttpUtility.UrlEncode(“[https://www.google.com](https://www.google.com)”)

Thanks  
ashwin S
