URL Encoder/Decoder
Encode and decode URLs for web development and data processing
URL Input
Enter any URL or text containing special characters
Processed URL
Original Length:
0
Result Length:
0
Length Change:
0
Quick Examples
Space Character
hello world
Query Parameters
name=John&age=30
Special Characters
100% & more!
Encoded URL
hello%20world
Complex URL
Full URL Example
Unicode Text
café & naïve
About URL Encoding
What is URL Encoding?
URL encoding (percent encoding) converts special characters into a format that can be safely transmitted over the internet. Characters are replaced with a percent sign (%) followed by their hexadecimal ASCII value.
Common Encodings
- Space: %20 or +
- Ampersand (&): %26
- Percent (%): %25
- Hash (#): %23
- Question mark (?): %3F
- Plus (+): %2B
When to Use
- Form Data: Submitting forms with special characters
- Query Parameters: URL parameters containing spaces or symbols
- API Requests: Sending data via URL
- Web Development: Handling dynamic URLs
Encoding Options
- Standard: Encode the entire input including protocol
- Component: Only encode URL components (path, query, etc.)
Reserved Characters
These characters have special meaning in URLs and should be encoded when used literally:
! * ' ( ) ; : @ & = + $ , / ? # [ ]
Best Practices
- Always encode: User input in URLs
- Double-check: Avoid double encoding
- Component-wise: Encode parts separately when building URLs
- Testing: Test with special characters and unicode