URL Encoder and Decoder

Encode or decode your URL free online. Encode to pass it as parameter. Decode it to human readable format. Free online URL Encoder and Decoder.

Why do I need URL encoding?

The URL specification RFC 1738 specifies that only a small set of characters can be used in a URL. Those characters are:

  • a to z (abcdefghijklmnopqrstuvwxyz)
  • 0 to 9 (0123456789)
  • $ (Dollar Sign)
  • - (Hyphen / Dash)
  • _ (Underscore)
  • . (Period)
  • + (Plus sign)
  • ! (Exclamation / Bang)
  • * (Asterisk / Star)
  • ' (Single Quote)
  • ( (Open Bracket)
  • ) (Closing Bracket)

Information Credit  freeformatter.com

How does URL encoding work?

All offending characters are replaced by a % and a two digit hexadecimal value that represents the character in the proper ISO character set. Here are a couple of examples:

  • $ (Dollar Sign) becomes %24
  • & (Ampersand) becomes %26
  • + (Plus) becomes %2B
  • , (Comma) becomes %2C
  • : (Colon) becomes %3A
  • ; (Semi-Colon) becomes %3B
  • = (Equals) becomes %3D
  • ? (Question Mark) becomes %3F
  • @ (Commercial A / At) becomes %40

Information Credit freeformatter.com

What is URL Encode and Decode

URL encode and Decode also known as percent-encoding is a method to encode arbitrary data in a Uniform Resource Identifier (URI) using only the limited US-ASCII characters legal within a URI.

Although it is known as URL encoding, it is, in fact, used more generally within the main Uniform Resource Identifier (URI) set, which includes both Uniform Resource Locator (URL) and Uniform Resource Name (URN). As such, it is also used in the preparation of data of the application/x-www-form-urlencoded media type, as is often used in the submission of HTML form data in HTTP requests.

How URL Encode and Decode Works

We have used Javascript for this URL Ecnode and Decode tool. it is very secure tool as we dont share your data to anyone not even us. Your data is processed locally on your machine only. So no need to be scared. And using Javascript allowed us to provide you a faster result of encoding and decoding the URL.

How to Encode URL in Javascript

To encode the URL in Javascript, simply use the encodeURIComponent function of Javascript. To encrypt the URL we have used the code as follows.

encodeURIComponent(unencoded).replace(/'/g, "%27").replace(/"/g, "%22");

How to Decode URL in JavaScript

To decode the URL encoded via percent-encoding or any other method, use javactipts decodeURIComponent funciton. We have decoded the URl with the flliwng.

decodeURIComponent(encoded.replace(/\+/g, " "));

You can follow me on social media via @coderstea on TwitterLinkedinFacebook, or Instagram. We also share high-quality videos about programming on our Youtube channel. You can also publish your own post on CodersTea.com, just share your thought on Contact Us or let us know in the comments.

Please share this tool with others if you have found it useful. You can check out the other tools shown in the sidebar. We have Base64 Encode and Decode, Cron-job utility for easy visualization of corn job.