URL Decode/Encode | JavaScriptSource

URL Decode/Encode

JavaScriptSource Staff Jul 20, 2007


Use this script to encode/decode URL parameters. It is fully compatible with UTF-8 encoding. Very useful when you want to transfer data using Ajax technology, or for other operations which involve URL parameter manipulation.

Enter a string:

URL encoded data:


If you plan on using UTF-8 encoding in your project don't forget to set the page encoding to UTF-8 in the Content-Type meta tag.

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: decodeEncode.js


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response