URL encoder / decoder
Percent-encode and decode URL components with Unicode support. Nothing leaves your browser.
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world
https://example.com/search?q=hello world
Guide
URL Encoder / Decoder: what it does and how to use it
What this Developer tool does
This tool percent-encodes and decodes URL components. URLs often need escaping when they contain spaces, Unicode, query parameters, redirect targets, JSON fragments, or reserved characters such as &, ?, #, and =.
How it works
Paste text or an encoded component. The browser uses standard URL encoding and decoding functions to produce safe output. Use encoded values inside query strings and decoded values when debugging parameters returned by an API or analytics tool.
Examples
- Encode a redirect URL for a query parameter.
- Decode a tracking link to inspect parameters.
- Escape Unicode search terms.
Security considerations
Encoding does not make unsafe URLs trustworthy. Always validate redirect targets and user-controlled URLs on the server.
FAQ
Is this for full URLs or components?
It is best for URL components such as query values, paths, and parameter values.
Why does %20 appear?
%20 is the percent-encoded form of a space.
Does encoding prevent XSS?
No. It only changes URL representation; application security still needs proper validation and escaping.