URL Encode
Make text safe to put in a web address. Spaces, accents, symbols and emoji are turned into percent codes such as %20, so links and query strings work everywhere. Encode a single value, or a whole address while keeping its slashes and question marks.
How to URL Encode Text
Quick answer: paste your text, choose A value or A whole address, and copy the encoded result.
-
1
Paste your text
A value or a whole web address.
-
2
Choose the mode
Value or whole address.
-
3
Pick space style
%20 or +.
-
4
Copy the result
Use it in your link.
What You Get
What Is URL Encoding?
Web addresses may only contain a limited set of characters. Others, such as spaces, accented letters, emoji, and symbols like & or #, must be written as percent codes: a % sign followed by two hexadecimal digits for each byte. A space becomes %20, é becomes %C3%A9 and & becomes %26. This is called URL encoding or percent-encoding, and browsers, servers and apps all understand it.
A Value or a Whole Address?
A value encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for text that goes inside a query string or a path segment, such as a search term, a redirect address or a name. Characters such as / ? & = are encoded so they cannot be mistaken for parts of the address.
A whole address keeps the characters that give an address its structure, such as : / ? # & =, and only encodes spaces and other unsafe characters. Use it to clean up a complete link that contains spaces or accents.
%20 or +?
Both mean a space, but in different places. HTML forms send spaces as + in query strings, and many servers expect that. %20 is valid everywhere, including paths, so it is the safest default. Choose + only when a system specifically wants form-style encoding.
Example
Encoding "café & bakery" as a value gives caf%C3%A9%20%26%20bakery. As part of a link such as https://example.com/search?q=café & bakery, whole address mode gives https://example.com/search?q=caf%C3%A9%20&%20bakery, keeping the ? and = in place. To read encoded links, use URL Decode.
Who Uses URL Encoding?
Developers building links and calling web services, marketers creating tracking links with campaign values, SEO specialists checking addresses with special characters, support staff sharing search links, and anyone pasting text into a link that must survive being sent by email or chat without breaking.
Good to Know
Never encode text twice: an already encoded %20 becomes %2520 when encoded again, which breaks the link. If your text already contains percent codes, decode it first. Letters, digits and the characters - _ . ~ are never changed because they are always safe. Characters are encoded as UTF-8, the standard used by all modern browsers and servers, so accented letters and emoji work in every language.
Step by Step
Decide first whether you are encoding a single value, such as a search term or a redirect address, or a complete link. Paste the text, pick the matching mode, and choose %20 unless the receiving system needs + for spaces. Copy the encoded text and place it in your link. Test the link once in your browser to make sure it opens the page you expect.
To encode many values at once, put each on its own line; every line is encoded separately and the line breaks are kept.
Private, Free and Instant
The encoder is free and handles long text and long lists of links. There is no sign-up, no limit and nothing to install. Everything runs inside your browser, so passwords, tokens, customer data and private messages are never uploaded, logged or stored anywhere. The result updates instantly as you type or paste, and you can open a text file from your device and download the result as a new file. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android.
Encoding URLs: Which Characters Need to Be Escaped
Only letters, digits and a few symbols may appear in a URL as they are. Others are replaced by percent codes so that links work in every browser and server.
Examples
- Space becomes %20.
- & becomes %26 inside parameter values, so it does not split parameters.
- Non-English letters become UTF-8 bytes, for example é as %C3%A9.
Common mistakes
Encoding an entire URL, including the https:// part, breaks it. Encode only the values you add. To read an encoded link, use URL decode.
Frequently Asked Questions
Questions about URL encoding