URL Encoder/Decoder

Encode and decode URLs and query parameters

← Back to Tools

URL Conversion

Encoded URL will appear here.

Special Characters Reference

Character URL Encoded Description
Space %20 Space character
! %21 Exclamation mark
" %22 Double quote
# %23 Number sign (hash)
$ %24 Dollar sign
% %25 Percent sign
& %26 Ampersand
' %27 Single quote
( %28 Opening parenthesis
) %29 Closing parenthesis
+ %2B Plus sign
, %2C Comma
/ %2F Forward slash
: %3A Colon
; %3B Semicolon
= %3D Equals sign
? %3F Question mark
@ %40 At sign
[ %5B Opening bracket
] %5D Closing bracket

About URL Encoding

URL encoding, also known as percent encoding, is a mechanism for encoding information in a Uniform Resource Identifier (URI) under certain circumstances. URL encoding is used when placing text in a query string to avoid it being interpreted as URL syntax, and also to handle characters outside the ASCII set.

When to Use URL Encoding

Encoding Types

encodeURIComponent() - Encodes all characters except: A-Z a-z 0-9 - _ . ! ~ * ' ( )

Use this when encoding query string parameters or any part of a URL except the URL itself.

encodeURI() - Encodes all characters except: A-Z a-z 0-9 - _ . ! ~ * ' ( ) ; / ? : @ & = + $ , #

Use this when encoding a complete URL. It preserves characters that have special meaning in URLs.

Related Tools