URL Encoder / Decoder

Encodes or decodes a string to the the Uniform Resource Locators Specification

Enter the string to encode or decode here

Why do we need to use the Url encoding?

The RFC 1738[http://www.ietf.org/rfc/rfc1738.txt] set of rules says a very small set of characters can be used as url.

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

How Url encoding works?

All not allowed characters converts to % and a two digit hexadecimal value that represents the character in the ISO character set.

Few examples

  • & (Ampersand) becomes %26
  • + (Plus) becomes %2B
  • = (Equals) becomes %3D
  • , (Comma) becomes %2C
  • ? (Question Mark) becomes %3F
: