Percent-encode text for links, decode %XX sequences, or break a full URL into its decoded query parameters. Runs in your browser.
Text is encoded as UTF-8, so accented letters and emoji become multi-byte %XX sequences. Everything runs in your browser; nothing you paste is sent anywhere.
The URL encoder and decoder converts text to percent-encoding for use in web addresses and back again, and can break a full URL into its parts with every query parameter decoded. “café au lait & cream?” encodes to caf%C3%A9%20au%20lait%20%26%20cream%3F as a query value, and decoding that string gives the original text back. Choose component, full URL or form encoding to match where the text will be used. Everything runs in your browser, so nothing you paste is sent anywhere.
Developers, marketers and SEO specialists use URL encoding constantly: building links with tracking parameters, debugging API requests, reading redirect URLs, checking analytics reports and fixing broken links that contain spaces or non-English characters.
A URL may only contain a limited set of characters: letters, digits and a few symbols. Some symbols, such as / ? # & and =, have special meanings that separate the parts of an address. URL encoding, also called percent-encoding, represents any other character, or a special character used as ordinary data, as a % sign followed by two hexadecimal digits giving the value of each byte. A space becomes %20, & becomes %26 and ? becomes %3F. The rules are defined in RFC 3986, the standard for URI syntax.
Characters outside basic English are first converted to bytes using UTF-8, and each byte is then percent-encoded. The letter é is two bytes in UTF-8, so it becomes %C3%A9. Most emoji take four bytes, so 😀 becomes %F0%9F%98%80.
The three encoding types differ in which characters they leave alone:
Suppose you want to link to a search for fish & chips. If you simply write ?q=fish & chips, the space breaks the URL and the & starts a new parameter, so the search only sees “fish “. Component encoding gives ?q=fish%20%26%20chips, and form encoding gives ?q=fish+%26+chips. Both are read correctly as the full phrase.
Decoding reverses the process, turning every %XX sequence back into its byte and the bytes back into text. The tool accepts both upper-case and lower-case hexadecimal, so %C3%A9 and %c3%a9 both decode to é.
The only judgement call is the + sign. In query strings and form data, + means a space. In the path of a URL, a + is a real plus sign, as in /c++/. When the “Treat + as a space” box is ticked, + becomes a space before decoding; untick it if your text contains genuine plus signs. A real plus sign in a query value should always be encoded as %2B to avoid this ambiguity.
Parse mode splits a full address into its parts and decodes each one:
It’s a quick way to read long tracking links, check which UTM parameters a campaign link carries, or see where a redirect URL actually leads. Paste https://example.com/search?q=caf%C3%A9+au+lait&page=2 and the table shows q = café au lait and page = 2.
A common bug happens when text that is already encoded gets encoded again. The % sign itself is encoded as %25, so café becomes caf%C3%A9 after one round and caf%25C3%25A9 after two. Links with %25 followed by two hex digits are a strong sign of double encoding. When the decoded result still contains % sequences, the tool points this out; decode it a second time to get the original text. To avoid the problem, encode each value exactly once, at the moment you insert it into the URL.
Search engines handle encoded URLs well, and non-English characters in addresses are displayed in readable form in search results and browser address bars even though they travel as percent-encoding. Still, short, readable URLs made of lower-case words and hyphens are easier to share and less likely to break. Spaces in file names are a frequent cause of broken links, so use hyphens instead. When you add tracking parameters to links, make sure each value is component-encoded so characters like & in a campaign name don’t cut it short.
In JavaScript, encodeURIComponent() encodes a single value and encodeURI() a whole address; URLSearchParams builds query strings with form encoding automatically. In Python, urllib.parse.quote() and quote_plus() encode, and unquote() decodes. PHP has rawurlencode() for RFC 3986 encoding and urlencode() for form encoding. Results differ slightly between languages in how they treat spaces and characters like ! and *, which is why two tools can produce different but equally valid output.
Percent-encoding only makes text safe to put in a URL; anyone can decode it instantly. Never put passwords, personal information or secret keys in a URL, encoded or not, because URLs are stored in browser history, server logs and analytics tools, and can be passed to other sites in the referrer header.
For related questions, use the Base64 encode decode tool to encode text to Base64 or decode it back, or the password generator to create strong random passwords.
A way of writing characters that aren't allowed in a web address, or that have a special meaning there, as a % sign followed by two hexadecimal digits. A space becomes %20.
%20 is an encoded space. Spaces aren't allowed in URLs, so they're written as %20, or as + in query strings and form data.
Both can represent a space. %20 works anywhere in a URL. + means a space only in query strings and form data; in the path it is a real plus sign.
Choose Decode, paste the encoded text and select Decode. Every %XX sequence is turned back into the original characters, including accented letters and emoji.
Use encodeURIComponent, the Component option here, for individual values such as a search term. Use encodeURI, the Full URL option, only to tidy a complete address, because it doesn't encode &, = or ?.
%25 is an encoded % sign. Seeing %25 followed by two hex digits, such as %2520, usually means the text was encoded twice.
They are converted to UTF-8 bytes and each byte is percent-encoded. é becomes %C3%A9 and 😀 becomes %F0%9F%98%80.
Encode it as %2B. An unencoded + in a query string is read as a space.
The text was probably encoded with an older character set such as Latin-1, where é is %E9. Modern URLs use UTF-8, where é is %C3%A9.
Yes. Choose Parse URL and paste the link. The tool lists the host, path, fragment and every query parameter with its decoded value.
No. Encoding, decoding and parsing all happen in your browser.