Free URL Encoder & Decoder
Encode or decode URLs and query-string parameters — choose component or full-URL mode.
Output
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dtax%20rate%26year%3D2026
How to use / FAQ
Choose Encode or Decode and paste your text — the result updates instantly. Use Component mode for a single query value or path segment, and Full URL mode when you want to escape a whole address without breaking its : / ? & separators. Everything runs locally in your browser.
What's the difference between Component and Full URL?
Component (encodeURIComponent) escapes reserved characters like &, =, ? and /, so it's right for one parameter value. Full URL (encodeURI) leaves those separators intact so a complete link stays usable.
When do I actually need to encode a URL?
Any time a value contains spaces, &, =, +, #, or non-Latin characters and will travel in a query string, form post, or link. Encoding turns them into %-escapes so the URL can't be misread.
Why did decoding report an error?
The text contains an invalid percent sequence — usually a lone % or an incomplete %XX. Fix or remove it and the decode will succeed.
Does my text leave the browser?
No — encoding and decoding are done locally in JavaScript. Nothing is sent to a server.