Encode Decode URL Tool

URLEncodeDecode

I was testing something that in turn generated encoded URL strings so I wanted a quick way to decode them into their respective URL format along with properly formatted characters. As an example, instead of seeing a %2F in the URL I wanted to see the actual forward slash ‘/’ that it represented. In C Sharp I recall the HttpUtility.UrlEncode and HttpUtility.UrlDecode so made this app to do what I needed.

Example, take this URL:

http%3a%2f%2fwww.mysite.com%2fgohere%2fmyresources%2fmyarticles%2fhow-to-build-a-better-mousetrap%2f%3futm_blahblah%3dmyarticles%26utm_medium%3dsomethingelse

Generate this URL:
http://www.mysite.com/gohere/myresources/myarticles/how-to-build-a-better-mousetrap/?utm_blahblah=myarticles

I hope someone else finds it as useful a tool. The .cs file is also included in the ZIP file below.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s