Free Online URL Encoder and Decoder Tool

URL Encoder and Decoder Tool help you quickly convert any text or special characters into a safe and valid URL format.

URL to Encode

42 characters

Encoded URL

https://example.com/my%20page%20with%20spaces.html
54 characters

URL to Decode

54 characters

Decoded URL

https://example.com/my page with spaces.html
42 characters

Encoding Options

About URL Encoding

Our URL Encoder and Decoder Tool helps you quickly convert any text or special characters into a safe and valid URL format. With a single click, you can encode URLs to ensure they work correctly in browsers, APIs, or databases, and decode URLs back to human-readable text. This tool is especially useful for developers, SEO professionals, and digital marketers who often deal with web addresses, query strings, or online data sharing. It works instantly, is free to use, and requires no installation. Whether you need to encode online URLs for security and compatibility or decode online URLs to get the original text, our tool provides an easy and reliable solution.

When to Use URL Encoding

  • When including special characters in query parameters
  • When passing data in URLs that contains spaces or non-ASCII characters
  • When creating URLs that need to be standards-compliant
  • When handling user-generated content that will be included in URLs

encodeURI vs encodeURIComponent

encodeURI: Use for encoding complete URLs. It does not encode characters that are part of the URL syntax like :, /, ?, &, =, etc.

encodeURIComponent: Use for encoding URL components (like query parameters). It encodes all characters except letters, digits, and - _ . ! ~ * ' ( )

Commonly Encoded Characters

Space: %20
!: %21
#: %23
$: %24
%: %25
&: %26
': %27
(: %28
): %29
*: %2A
+: %2B
,: %2C
/: %2F
:: %3A
;: %3B
=: %3D
?: %3F
@: %40
[: %5B
]: %5D

Examples

Original: https://example.com/path with spaces/

Encoded: https://example.com/path%20with%20spaces/

Original: query=value with & special characters

Encoded: query=value%20with%20%26%20special%20characters

Common Use Cases

Query Parameters

Encode special characters in URL query parameters to ensure they are properly interpreted by servers.

URL Paths

Encode spaces and special characters in URL paths to create valid, standards-compliant URLs.

Special Characters

Encode strings containing &, %, #, and other characters that have special meaning in URLs.

Unicode Characters

Encode non-ASCII characters like emojis and characters from other languages for use in URLs.

Copied to clipboard!