URL Encoder / Decoder

v1.3, 2020-07-24, updated from v1.2, 2006-05-25

Enter text to be encoded or decoded in the fields below. You can encode or decode URLs and strings that have been URL encoded by web sites or browsers. This update will also decode HEX strings in URLs. To learn more about URL encoding, also known as "Percent Encoding", visit this Wikipedia article.

Plain URL:


ENCODE   CLEAR


Encoded URL, using encodeURIComponent():


DECODE


Encoded URL, using encodeURIComponent() + replace(/'/g,"%27"):


Encoded URL, using escape():





Common URL Encodings

Character Code Character Code
space %20 , %2C
! %21 - %2D
" %22 . %2E
# %23 / %2F
$ %24 : %3A
% %25 ; %3B
& %26 = %3D
' %27 ? %3F



Notes:

  • The code number is the Hexadecimal ASCII code of the character.
  • Safari 1.0.3 does NOT support encodeURIComponent()