URL Encoder/Decoder
Encode and decode URLs for web use
Example Conversions
Original: https://example.com/search?q=hello world&lang=en
Encoded: https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world%26lang%3Den
About URL Encoding
URL encoding (also called percent encoding) is a mechanism for encoding information in a Uniform Resource Identifier (URI). It converts characters into a format that can be transmitted over the Internet. Special characters, spaces, and non-ASCII characters are converted to a percent sign (%) followed by hexadecimal digits.
Why URL Encoding is Needed
- URLs can only contain ASCII characters from a limited set
- Special characters have specific meanings in URLs
- Spaces and certain characters are not allowed in URLs
- Non-ASCII characters (like ΓΌ, Γ©, δΈ) need encoding
Common Encoded Characters
- Space: %20 or +
- !: %21
- #: %23
- $: %24
- &: %26
- /: %2F
- ?: %3F
- @: %40
Use Cases
- Passing data in URL query parameters
- Creating shareable links with special characters
- Building API requests with encoded parameters
- Debugging URL-related issues
- Working with internationalized URLs