URL Encoder/Decoder

Encode or decode URL strings for proper web use.

Result

About the URL Encoder/Decoder Tool

This tool allows you to encode or decode URLs and URL components to ensure they work properly in web applications. URL encoding converts special characters to their hexadecimal representation, preceded by a percent sign (%).

Two Types of URL Encoding

  1. Standard URL Encoding (encodeURI/decodeURI): Used for encoding complete URLs. It preserves characters that have special meaning in a URL, such as : / ? & = ; + # @.
  2. Component Encoding (encodeURIComponent/decodeURIComponent): Used for encoding URL components like query parameters. It encodes all special characters, including those that have meaning in a URL structure.

When to Use URL Encoding

  • When embedding user input into URLs
  • When passing parameters with special characters in a URL
  • When creating dynamically generated links
  • When working with non-ASCII characters in URLs
  • When creating query strings for GET requests

Common URL Encodings

Character URL Encoded Value
Space %20
# %23
$ %24
% %25
& %26
+ %2B
/ %2F
? %3F