URL Encoder/Decoder

Encode and decode URLs for web development, API calls, and data transmission. Handle special characters, spaces, and non-ASCII text safely.

Input

Output

Quick URL Component Encoding

What is URL Encoding?

URL encoding, also known as percent encoding, is a mechanism for encoding information in a Uniform Resource Identifier (URI). It converts characters that are not allowed in a URL into a format that can be transmitted safely.

Why URL Encoding Matters:

  • Safe transmission of special characters
  • Proper handling of non-ASCII characters
  • Prevention of URL parsing errors
  • Security against injection attacks
  • Compatibility across different systems

Common Encodings

Space %20
& (Ampersand) %26
+ (Plus) %2B
% (Percent) %25
? (Question Mark) %3F
# (Hash) %23

URL Encoding Examples

Original Encoded Use Case
Hello World! Hello%20World%21 Simple text with space and exclamation
user@example.com user%40example.com Email address in URL
café & restaurant caf%C3%A9%20%26%20restaurant Unicode characters and symbols
search?q=hello world search%3Fq%3Dhello%20world Query parameters

Important Notes:

  • Always encode URLs before sending them in HTTP requests
  • Some characters may be encoded differently in different contexts
  • Double encoding can occur - decode first if needed
  • URL encoding is different from HTML entity encoding