URL Encoder and Decoder
Encode or decode URLs and query strings safely.
About URL Encoder and Decoder
Special characters in URLs, such as spaces, ampersands and non-English letters, must be encoded so browsers and servers read them correctly. This tool encodes or decodes text as a URL component or as a full URL. Developers and marketers use it for query strings, redirect links and tracking parameters. Everything runs in your browser.
Example
Input: "summer sale & discounts" with Encode component. Output: summer%20sale%20%26%20discounts.
Tips for better results
- Encode only the parts that need it, such as parameter values, not the whole link structure.
- If decoding fails, the text may contain a stray percent sign.
- Never place secrets in URLs.
When to use URL Encoder and Decoder
This tool is for anyone working with links that carry parameters, such as marketers, developers, analysts and support staff. Use it when a link contains spaces, accented letters or symbols, when a redirect parameter needs to be nested inside another URL, or when you receive a messy link full of percent codes and want to read it. Paste the text, choose encode or decode and copy the result. Everything runs in your browser.
Real-world uses
- A marketer adds a campaign name with spaces and an ampersand and encodes it so the tracked link does not break.
- A developer decodes a long redirect link from a log file to see which page the visitor actually requested.
- An analyst cleans a list of search terms copied from a report where each spaced word appears as a percent code.
- A support agent encodes a customer's name containing accents before placing it into a prefilled form link.
Common mistakes to avoid
- Encoding an entire link with the component option also converts slashes and colons, which breaks the address, so encode only the value.
- Decoding twice can damage text that legitimately contains percent signs, so decode once and check the result before decoding again.
- Pasting links that already contain codes and encoding them again produces double encoding, so decode first if you are not sure.
How to use URL Encoder and Decoder
- Paste text or a URL into “Text or URL”.
- Choose a mode: Encode (component), Decode (component), Encode full URL or Decode full URL.
- The result updates instantly. Copy it into your link, code or spreadsheet.
Worked examples
Example 1: “coffee & tea?” with Encode (component).
Result: coffee%20%26%20tea%3F. Spaces, & and ? are encoded so the text is safe inside a query value.
Example 2: “https://example.com/search?q=coffee%20%26%20tea” with Decode full URL.
Result: https://example.com/search?q=coffee %26 tea. Full-URL mode keeps reserved characters like %26 encoded so the link structure does not change.
Example 3: The same URL with Decode (component).
Result: Everything is decoded, including %26 back to &, which is what you want when reading a single value.
Limitations and things to check
- Use component mode for one value, such as a search term. Using it on a whole URL also encodes : and /, which breaks the link.
- Decoding text that is not valid percent-encoding shows an error.
- It does not shorten or check links.
More tools like this: SEO & Website.
Frequently asked questions
When should I choose component encoding?
Use it for a single value, such as a search term or redirect address that goes inside a parameter. It encodes reserved characters like slashes, question marks and ampersands.
Why does my decoded text look odd?
The original may have used a different character set, or it may have been encoded twice. Try decoding once more, or check whether a plus sign was meant to be a space.
What is the difference between component and full URL modes?
Component mode encodes every reserved character and is meant for a single parameter value. Full URL mode leaves characters like :, /, ? and & alone so the address still works.
Why is a space sometimes + and sometimes %20?
Both mean a space. %20 is standard in URLs; + is used in HTML form submissions. This tool uses %20.
Is it safe to paste private links?
Yes. Encoding and decoding run in your browser and nothing is sent to a server.
Related tools
UTM Link Builder
Add campaign tracking parameters to any URL.
🔎URL Slug Generator
Turn a title into a clean, SEO-friendly URL slug.
💻Base64 Encoder and Decoder
Encode or decode text to and from Base64.
💻JSON Formatter and Validator
Format, minify and validate JSON.