Developers
URL Encoder
Clean, valid URLs — percent-encoding without picking the wrong mode.
A query parameter containing an “&”, a search string with accents, a callback URL that has to travel inside another URL: without proper encoding, your link breaks or your data arrives truncated. This tool applies percent-encoding in both directions, live. The “component only” checkbox lets you pick the right mode: encodeURIComponent for a parameter value (everything is escaped, including “&”, “=” and “/”), or encodeURI for a full URL whose structure must survive. Decoding works too — handy for reading an unreadable redirect URL. Everything stays in your browser: free, no sign-up, no limits, and nothing is ever logged anywhere.
How does it work?
- Paste your text or URL into the input area.
- Tick “component only” to encode a parameter value, untick it for a full URL.
- Click “Encode” or “Decode” as needed.
- Copy the result with one click.
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL while preserving its structure: “:”, “/”, “?” and “&” stay untouched. encodeURIComponent escapes everything and is meant for a single value — a search parameter, a callback URL. Picking the wrong one is the number-one cause of truncated parameters.
Why does my parameter get cut off after an “&”?
Because the “&” was not encoded: the server reads it as the start of a new parameter. Run the value through encodeURIComponent — the “&” becomes %26 and arrives whole on the server side. The same goes for “=” (%3D) and “+”.
Spaces: %20 or +?
Both exist: %20 is the universal encoding, valid anywhere in a URL; “+” only means a space inside a form-style query string (application/x-www-form-urlencoded). When in doubt, use %20 — that is what this tool produces.
What happens if I encode twice?
The “%” of %20 gets encoded itself and becomes %2520: decoding gives you back “%20” instead of a space. If you spot %25 in a URL, it is almost always double encoding — decode here as many times as needed to recover the original.