URL Encoder / Decoder

Encode and decode URLs to handle special characters and spaces in web addresses.

Input

0 characters

Encoded URL

Common URL Encoding Reference

Space

%20 or +

!

%21

"

%22

#

%23

$

%24

%

%25

&

%26

+

%2B

=

%3D

?

%3F

@

%40

/

%2F

About URL Encoding

URL encoding (also known as percent encoding) is a mechanism to encode information in URLs. Special characters are converted to a percent sign followed by two hexadecimal digits.

When to Use URL Encoding:

  • Including spaces or special characters in URLs
  • Passing parameters with special characters
  • Handling non-ASCII characters in URLs
  • Working with form data submission
  • API parameter encoding

Characters That Need Encoding:

  • Spaces and non-printable characters
  • Reserved characters: ! * ' ( ) ; : @ & = + $ , / ? # [ ]
  • Unsafe characters: " % - . < > \ ^ _ ` { | } ~
  • Non-ASCII characters (unicode)

Safe Characters (No Encoding Needed):

  • Alphanumeric characters: A-Z, a-z, 0-9
  • Unreserved characters: - . _ ~