URL Encoder/Decoder

Encode and decode URL parameters and query strings
Examples:
Encode: hello world → hello%20world
Decode: hello%20world → hello world
Encode: 你好 → %E4%BD%A0%E5%A5%BD
Decode: %E4%BD%A0%E5%A5%BD → 你好

What is URL Encoding?

URL encoding (also called percent-encoding) converts special characters into a format that can be safely transmitted over the internet. URLs can only contain certain characters from the ASCII character set. Characters outside this set must be encoded using a percent sign (%) followed by hexadecimal values.

When Do You Need URL Encoding?

URL Encode vs Encode Component

URL Encode (encodeURI):

Encode Component (encodeURIComponent):

Common Characters Encoded

Space → %20
! → %21
# → %23
$ → %24
& → %26
' → %27
( → %28
) → %29
+ → %2B
/ → %2F
: → %3A
= → %3D
? → %3F
@ → %40

Related Tools