What is URL Encoder?
URL encoding (percent-encoding) replaces unsafe ASCII characters with a '%' followed by two hexadecimal digits representing the byte value. It is required when passing text as a URL query parameter or path segment to ensure the URL remains valid across all HTTP clients.
How to use URL Encoder
Paste your plain text into the input area and click Encode. The output is a percent-encoded string safe to embed in a URL. Use the URL Decoder tool to reverse the process.
Example
Input: hello world? price=€10 & category=日本語
Output: hello%20world%3F%20price%3D%E2%82%AC10%20%26%20category%3D%E6%97%A5%E6%9C%AC%E8%AA%9ECommon use cases
1. Building query strings for GET requests.
2. Passing special characters in API endpoint paths.
3. Encoding form data before submission.
4. Constructing shareable URLs with embedded parameters.
Frequently asked questions
What's the difference between encodeURI and encodeURIComponent?▾
This tool uses encodeURIComponent, which encodes everything except A–Z a–z 0–9 - _ . ! ~ * ' ( ). Use it for individual parameter values, not full URLs.