URL Encoder Decoder
Percent-encode text so it is safe in a URL, or decode an encoded URL back to readable text. No signup. Ideal for handling special characters in URLs correctly.
Share on Social Media:
A URL encoder turns text with spaces and special characters into a form that is safe to put in a web address, and a URL decoder turns it back into readable text. This tool does both, free, with no account: paste your text, pick Encode or Decode, and copy the result — or save it as a .txt file.
On this page
- How to Encode or Decode a URL Step by Step
- What Gets Encoded
- What URL Encoding Is and Why It Is Needed
- Encoding Versus Decoding
- Who Uses URL Encoding
- Pro Tips for URL Encoding
- Common URL Encoding Mistakes to Avoid
- Related Tools You May Need Next
- Frequently Asked Questions
How to Encode or Decode a URL Step by Step
- Pick a mode. Encode is selected by default. Choose Decode if you have an encoded URL to read.
- Enter your text. Paste it into the top box, or upload a .txt file with the “Upload File” button.
- Click Generate. The result appears in the lower box.
- Copy or save it. Click “Copy to Clipboard”, or “Save as TXT” to download the result as url-encode-decode.txt.

What Gets Encoded
Encoding replaces characters that are not safe in a URL with a % followed by two hex digits — except spaces, which this tool writes as +. Verified examples from the tool itself:
| Character | Encoded form |
|---|---|
| space | + |
| & | %26 |
| ? | %3F |
| = | %3D |
| é | %C3%A9 |
Worked example — encoding hello world & friends? gives hello+world+%26+friends%3F. Decoding hello%20world%20%26%20friends%3F gives back hello world & friends?. Letters, digits, -, _ and . are left unchanged.

What URL Encoding Is and Why It Is Needed
URLs can only contain certain characters, so spaces and symbols such as &, ? and = must be percent-encoded before they go into a web address. Encoding converts them into a safe form; decoding converts them back into readable text. Without encoding, a space or an & inside a value would break the URL — the browser would read it as the end of one part and the start of another.
Note: this tool encodes the whole text you enter, including :// in a full address. So do not paste a complete URL and encode it — encode only the part that needs it, usually the value after ?q= or ?name=. A full address encoded by mistake comes out unreadable and will not work as a link.
Encoding Versus Decoding
| Aspect | Encoding | Decoding |
|---|---|---|
| Direction | Readable text → URL-safe text | URL-safe text → readable text |
| What it does | Replaces unsafe characters with %XX (space becomes +) | Replaces %XX with the original character (+ and %20 both become a space) |
| Use it when | Putting text into a URL, for example a search term | Reading an encoded URL to see what it contains |
| Example | hello world & friends? → hello+world+%26+friends%3F | hello%20world%20%26%20friends%3F → hello world & friends? |
Who Uses URL Encoding
Developers. Building links with search terms, names, or user input in the address.
Marketers. Fixing tracking links where a campaign name contains spaces or &.
SEO specialists. Reading encoded URLs in Search Console or server logs to see the real page.
Students. Learning how browsers handle special characters in addresses.
Anyone sharing a link. Encoding a file name with spaces so the link works when pasted.
Pro Tips for URL Encoding
Encode only the value, not the whole URL. Encode what comes after ?q=, not the https://example.com/search?q= part.
Watch out for &. An unencoded & inside a value splits it into a new parameter — encode it as %26.
Remember spaces become +. This tool writes a space as +, which is valid in query strings. Decoding accepts both + and %20.
Decode before you read. An encoded address in a log file is unreadable until you decode it — paste it here and choose Decode.
Save long results as a .txt file. Use “Save as TXT” instead of copying a very long encoded string by hand.
Test the link after encoding. Paste the finished URL into a browser and check it opens the right page.

Common URL Encoding Mistakes to Avoid
Encoding a whole URL. The : and / get encoded too, and the link stops working. Encode only the part that needs it.
Double-encoding. Encoding text that is already encoded turns %20 into %2520. Decode it first, or start from the original text.
Forgetting & in a value. A name like “Fish & Chips” must be encoded, or the & will be read as a new parameter.
Assuming %20 and + are the same everywhere. Both mean a space when decoding, but this tool writes + when encoding — do not be surprised by it.
Encoding by hand. Guessing the codes for ?, = and non-English letters is slow and error-prone — paste the text and let the tool do it.
Related Tools You May Need Next
Base64 Encode Decode — convert text to Base64 and back. JSON Escape — escape and unescape strings for JSON. MD5 Generator — hash any text with MD5. SHA256 Generator — hash any text with SHA-256. Text to Binary — convert text to binary code. Binary to Text — convert binary code back to text. URL Opener — open several URLs at once. XML Formatter — beautify and format XML.
Frequently Asked Questions
How do I encode a URL?
Paste your text into the top box, leave Encode selected, and click Generate. The encoded text appears in the lower box — copy it or save it as a .txt file.
Is this URL encoder free?
Yes. It is completely free with no account and no signup, and it works on any device.
Why does a space become + and not %20?
This tool uses standard URL encoding for query strings, where a space is written as +. Both + and %20 mean a space, and decoding accepts both.
How do I decode a URL?
Paste the encoded text, choose Decode, and click Generate. The readable text appears in the lower box.
Should I encode a whole URL?
No. Encode only the part that needs it, such as the value after ?q=. Encoding a full address also encodes : and /, and the link will not work.
Can I encode a .txt file?
Yes. Use the “Upload File” button to upload a .txt file, then click Generate.
What characters get encoded?
Spaces, &, ?, =, and non-English letters such as é, plus any other character that is not safe in a URL. Letters, digits, -, _ and . stay unchanged.
Can I save the result?
Yes. Click “Save as TXT” to download the result as url-encode-decode.txt, or “Copy to Clipboard” to copy it.
What is the difference between encoding and decoding?
Encoding turns readable text into URL-safe text. Decoding turns URL-safe text back into readable text. They are opposite operations.
Is my text private?
Your text is sent to the server to be encoded or decoded, so do not paste passwords or other sensitive text. Nothing is stored for you to come back to.