URL encoder and decoder (percent-encoding)
Paste text or a link and convert it to or from percent-encoding, such as %20 for a space.
About this tool
Two modes. Component mode (encodeURIComponent) also encodes / ? & = and #, which is what you want for a single query value. Full URL mode (encodeURI) leaves those characters alone so a whole address keeps working.
Unicode. Characters outside plain English letters are encoded as UTF-8 bytes, so an accented letter becomes two or more %XX groups.
Errors are shown. If you decode text with a stray % or a cut-off sequence, the tool tells you instead of guessing.
Not encryption. Anyone can decode percent-encoding. It only makes text safe to place inside an address.
Frequently asked questions
When should I use component mode?
Use it for a value that goes inside a query string, such as the text after q=. If you encode a whole address in this mode, the colons and slashes are encoded too and it stops working as a link.
Why does a space become %20 and not +?
Percent-encoding uses %20. A plus sign for spaces is a convention used only in HTML form data, so this tool does not produce it.
Is my text uploaded?
No. The conversion happens in your browser.
More free tools
Explore more free tools or see our services.