URL encoder
Percent-encode text for a URL component
The URL encoder converts characters that are unsafe or meaningful in a URL into percent-encoded form. It is useful when building query values, path segments, redirects, test cases, and API requests that must preserve spaces or punctuation.
When this tool helps
- Encode a search term before placing it in a query parameter.
- Protect reserved characters inside a single path or query component.
- Compare browser and application encoding behavior during debugging.
How to get a reliable result
- Identify whether you are encoding a full URL or only one component.
- Encode the smallest required value instead of repeatedly encoding the whole address.
- Test the finished URL and confirm the server decodes it exactly once.
Practical example
A space is commonly represented as %20 in a URL component, while an ampersand inside a value becomes %26 so it is not mistaken for a parameter separator.
Important note
Double encoding can change meaning: % becomes %25 on a second pass. Encoding also does not make an untrusted destination safe, so validate schemes and hosts separately.