Back to Tools
🌐

URL Encoder

Developer

Encode and decode URLs for safe transmission and web application usage.

About URL Encoding

URL encoding is the process of converting special characters to %XX format to ensure proper transmission in HTTP requests. Common encoded characters include spaces (%20), and non-ASCII characters like Chinese.

encodeURI - Encodes a complete URL, preserving protocol, domain, path separators, etc. Suitable for encoding entire URLs.

encodeURIComponent - Encodes URL components including special characters. Suitable for encoding query parameters, fragments, etc.

Encoding Examples
Input: https://example.com/path?q=test&name=John Doe
encodeURI: https://example.com/path?q=test&name=John%20Doe
encodeURIComponent: https%3A%2F%2Fexample.com%2Fpath%3Fq%3Dtest%26name%3DJohn%20Doe
💡 Tip: Click "Swap" to quickly move the output to input for reverse operations.