FOLLOW US
softpcapps Software CODE HELP BLOG



Freeware Open Source Windows Software Applications and Free Online Tools

For Windows 11 : Download and run .NET 3.5 Installer if the application is not running

How to URL Encode a String

To URL encode a string do the following :

 
		string url_ecnoded_text = HttpUtility.UrlEncode(text_to_encode);

Please note that you have to also add "using System.Web;" on the top and also add a reference to the System.Web library.

Download Demo Project

Encode Decode Demo Project