URL Encoder Online
Runs in your browserEncode URLs and query values online for free with percent-encoding. Encode again for nested values, then copy or download. Runs in your browser.
URL Encoding at a Glance
Percent-encoding writes a byte as % followed by two hex digits. These rules decide what is changed.
| Item | Detail |
|---|---|
| Left unchanged | Letters A-Z and a-z, digits 0-9, and the characters - _ . ! ~ * ' ( ). |
| Space | Becomes %20. The plus sign is not used for spaces by this encoder. |
| Reserved characters | / ? # & = + : and similar are encoded, so a value cannot break the URL structure. |
| Non-ASCII text | Accented letters and emoji are encoded as their UTF-8 bytes, for example é becomes %C3%A9. |
| Example | a&b=c d becomes a%26b%3Dc%20d. |
How to Use the URL Encoder Online
- Paste the text
Type or paste the text, query value or path segment into the box.
- Press Encode URL
Every reserved and unsafe character is replaced by a % code, such as a space becoming %20. Press Encode again to encode the result a second time if needed.
- Copy or download
Use Copy for the clipboard or Download for a text file. Undo steps back through your previous presses.
When to Encode a URL Value
Encode each value you place into a query string, path segment or form field, not the whole address. Encoding the full URL would also encode its slashes, question mark and equals sign, so the link would stop working. Encode the search term, the redirect target or the filename, then join them into the URL yourself.
A common case is a redirect or callback parameter that itself contains a URL. Encode that inner URL once before adding it to the outer one. Press Encode again only for values that are passed through two systems that each decode once.
Choose the encoder for data, and the decoder when you need to read an encoded link. If a link ends in codes like %20 or %2F, paste it into the URL decoder to see the original text.
Things to Know
Privacy
Encoding runs in your browser. The text you paste is never uploaded, logged or stored.
Frequently Asked Questions
How do I URL encode text online?
Paste the text into the box and press Encode URL. Spaces become %20 and reserved characters become % codes.
Should I encode a whole URL?
No. Encode each value you put into a URL. Encoding the whole address also encodes the slashes, question mark and equals sign, which breaks it.
What is percent-encoding?
It is the standard way of writing unsafe characters in a URL: a byte is shown as a percent sign and two hexadecimal digits, such as %20 for a space.
Why does a space become %20 and not +?
%20 is the encoding defined for URL paths and is accepted everywhere. The plus sign means a space only in HTML form data, so this encoder never uses it.
Can I encode non-English characters?
Yes. Characters are encoded as UTF-8 bytes, so accented letters, non-Latin scripts and emoji all work.
Is my text sent to a server?
No. Encoding happens entirely in your browser, and nothing you type is uploaded or stored.