URL & URI Component Encoder / Decoder
Encode and decode query strings and special characters using percent-encoding (%20). 100% free client-side web utility.
Quick Answer
A URL encoder converts characters that are unsafe or reserved in web addresses into percent-encoded form, such as a space becoming %20, and a decoder reverses the process. Paste your text or URL here to encode or decode it instantly. It is free, and everything runs locally in your browser.
How to Use URL & URI Component Encoder / Decoder
Follow these 3 simple steps to process your files securely in seconds.
Paste URL
Insert query parameter or full URL.
Encode or Decode
Toggle between percent-encoding and human-readable URI strings.
Copy Result
Copy formatted URL directly.
Why Choose Toolenix Client-Side Tools?
Engineered for US & UK professionals who value maximum data privacy, speed, and zero cloud footprints.
Standard Percent-Encoding
Encodes spaces (`%20`), slashes, and reserved characters.
100% Private
No URLs or tracking query parameters leave your browser.
In-Depth Guide to URL & URI Component Encoder / Decoder
URL encoding is how text that is not allowed in a web address is made safe to put in one: unsafe characters are replaced by a percent sign and two hexadecimal digits, so a space becomes %20 and an ampersand becomes %26. This tool encodes and decodes text in your browser, and the one distinction that matters is which of JavaScript's two encoding functions you need.
encodeURI versus encodeURIComponent
encodeURI() is for a whole URL: it leaves the characters that give a URL its structure alone — : / ? & = and # — and encodes the rest. encodeURIComponent() is for a single value inside a URL: it encodes those structural characters too, so a string can sit safely inside one query parameter. Apply encodeURIComponent() to a full URL and it breaks: https:// becomes https%3A%2F%2F, and the link is dead. Apply encodeURI() to a parameter value containing an & and the value is split into two parameters. Choose by what you are encoding — the whole address, or one piece of it.
Spaces: %20 or + ?
A space is %20 under RFC 3986, the standard for URIs. In form data — application/x-www-form-urlencoded, the format a browser uses to submit a form — a space is a + instead. This tool outputs %20, the form used in URLs themselves. If the system you are sending data to expects form encoding, a + is what it wants; if it expects a URL, %20 is. Sending the wrong one usually still works, because most servers accept both in query strings — but in a path segment, only %20 is correct.
What encoding does not do
Encoding is not encryption and not security. An encoded password, token or personal detail is readable by anyone who decodes it, which takes one click. Never put secrets in a URL at all — they end up in server logs, browser history and referrer headers, encoded or not. Encoding exists to make a URL valid, not to make it private.
Encode the whole URL with encodeURI() and a single value with encodeURIComponent() — mix them up and the link breaks — and never treat encoding as a way to hide anything.
Frequently Asked Questions
Everything you need to know about using this free online tool.