URL Encode & Decode · Tutorial
How to read an encoded URL from logs or a tracking link
5 min readbeginnerUpdated
You found a URL in a server log, an analytics report or an email that's full of %20 and %3D codes, and you need to know what it actually contains, such as the search term a customer used or where a redirect leads. This tutorial decodes it step by step, including a value that was encoded more than once.
What you need
- The URL Encode & Decode
- The encoded URL (the Try it button loads a shop search link)
Steps
Paste the URL
Paste the whole URL into the left box. The decoded version appears on the right. In the sample,
q=blue%20mug%20%26%20saucerbecomesq=blue mug & saucer, the search term the customer typed.Look at nested parameters
The
refparameter decodes tocampaign=autumn&medium=email. It's a mini query string stored inside one parameter, which is why its=and&were encoded as%3Dand%26. In the decoded text, it now looks like extra parameters, so take care when reading it.https://shop.example.com/search?q=blue mug & saucer&lang=pt-BR&ref=campaign=autumn&medium=emailUse the URL Parser for structure
For a cleaner view, paste the original encoded URL into the URL Parser. It lists each parameter separately, decoded, so
q,langandrefeach get their own row, without the confusion of nested&signs.Unwrap double encoding
If decoded text still contains
%20or%3A, it was encoded twice, which is common in redirect links. Tick Decode repeatedly. The message tells you how many rounds were needed.Decide about plus signs
Keep Treat + as a space on for search terms and form data. Turn it off if the URL contains a real plus sign, such as an email address like
name+news@example.com.
Try it yourself
Opens the URL Encode & Decode with this tutorial's sample loaded.
Common mistakes
- Decoding before splitting parameters
- Decoding the whole URL first can turn an encoded
&inside a value into what looks like a new parameter. To read parameters reliably, split them first, as the URL Parser does. - Treating every + as a space
- In paths and some APIs, + is literal. If decoded emails or phone numbers lose their +, turn the option off.
- Sharing links that contain tokens
- Decoded URLs can reveal session tokens or personal details. Remove them before pasting a link into a ticket or chat.
Next steps
Go back to the URL Encode & Decode, or keep going with one of these:
FAQ
How do I find out where a redirect link really goes?
Decode it and look for a parameter such as url, target, redirect or u. Its value is usually the destination, sometimes encoded twice.