URL Encode / Decode Tool
Encode and decode URLs instantly. This tool helps you safely include text in URLs by converting special characters into a valid format.
What is URL Encoding?
URL encoding converts characters into a format that can be safely transmitted over the internet. Spaces and special characters are replaced with percent-encoded values.
Common Use Cases
- Passing parameters in URLs
- Encoding form data
- Working with APIs
- Avoiding invalid characters in links
Example
Original: hello world
Encoded: hello%20world
PHP Example
// Encode
urlencode("hello world");
// Decode
urldecode("hello%20world");
FAQ
What characters are encoded?
Spaces, symbols, and non-ASCII characters are encoded to ensure compatibility with web standards.
Is URL encoding the same as Base64?
No. URL encoding is used for safe transmission in URLs, while Base64 is used to encode binary data into text.