
A URL can only contain a limited set of characters. Spaces, accented letters, ampersands and many symbols have to be written as a percent sign followed by two hexadecimal digits, so a space becomes %20. This is called URL encoding or percent-encoding. The tool below encodes text for use in a URL and decodes encoded text back to something readable. It runs in your browser, so what you paste is not sent anywhere.
URL encoder and decoder
Turn text into a form that is safe inside a URL, or read an encoded URL back. The result updates as you type.
Every reserved character is escaped, including : / ? # & and =. Use this for one value inside a URL.
What you enter never leaves your browser. Nothing is sent or stored.
How to use the tool
- Type or paste your text into the input field.
- Press Encode to turn special characters into percent-encoding, or Decode to turn an encoded string back into plain text.
- Copy the result.
The tool works like JavaScript's encodeURIComponent and decodeURIComponent. That means it encodes everything except letters, digits and the characters - _ . ! ~ * ' ( ), including characters that have a meaning in a URL, such as /, ?, &, = and #. This is what you want for a single value, such as a search term or a parameter.
Encode a value, not a whole URL
The most frequent mistake is to encode an entire address. If you encode https://example.com/search?q=a b, the colon, the slashes and the question mark are encoded as well, and the result no longer works as a link. Encode the parts that are data, such as the value after q=, and leave the structure of the URL alone.
For example, the text coffee & tea becomes coffee%20%26%20tea. If you left the ampersand as it is, the receiving server would read & tea as the start of a new parameter.
Common uses
- Building a query string with a value that contains spaces,
&or=. - Putting an address inside another address, such as a redirect target in a login link.
- Reading a long encoded link from a log or an email, to see what it really contains.
- Writing non-English text in a link. Letters such as
ç,ğorüare encoded as their UTF-8 bytes, for exampleübecomes%C3%BC. - Checking why an API call fails when a parameter has a special character.
Things to watch for
- Encoding twice. Encoding an already encoded string turns
%20into%2520. If a link shows many%25, it was encoded more than once. - Spaces as plus signs. Form submissions often write a space as
+, while this tool writes%20. Both are common, but they are not interchangeable in every context. - Decoding broken input. A stray
%that is not followed by two hexadecimal digits cannot be decoded, and the tool reports an error. - Encoding is not security. Percent-encoding makes text safe to carry in a URL. It does not hide it or protect it. Do not put passwords or tokens in a URL expecting encoding to keep them private.
- Different from Base64. Percent-encoding keeps text readable where it can. Base64 rewrites all of the data in another alphabet.
When encoding bugs show up in production
Wrong encoding is a quiet source of broken links, lost parameters and failing integrations, especially when text with accents or symbols travels between systems. If your web application or your integrations keep running into it, the fix is to handle it once in the code. See web application development and system integration.
Frequently asked questions
Does my text leave my browser?
No. Encoding and decoding happen in the page on your device. The tool makes no network request with your text and does not store it.
Which characters are not encoded?
Letters, digits and - _ . ! ~ * ' ( ). Everything else is encoded, including /, ?, &, =, # and the space.
Why do I see `%25` in my link?
%25 is the encoded percent sign. It usually means the text was encoded twice. Decode it once and check the result.
Can I decode a whole URL?
Yes. Decoding a full address returns it as readable text. The decoded text is for reading, not for use as a link, because decoded special characters may change what the address means.
Does it handle non-English letters?
Yes. Letters outside plain English are encoded as their UTF-8 bytes and decoded back the same way.
Related services
Where this topic becomes an engagement.
Keep reading
The articles that follow this one.



