Most of us treat a URL the way we treat a phone number: as one continuous string to copy, paste, and trust. That habit works fine until it doesn't — until a link breaks the moment you add a second word to it, a parameter arrives in your code with a plus where you typed a space, or half of a link seems to vanish when you compare it against what the server actually received. The fix is not memorizing a spec. It is learning to see the small set of named parts a URL is actually built from, and practicing the act of reading them one at a time.
This guide walks you through that practice using the URL Workbench. You will take one ordinary link, split it into its labeled parts, read each parameter's value in decoded form, and finish with a short exercise you can repeat on any URL you meet. Nothing here assumes prior knowledge beyond "a URL is a web address" — everything else is built up from the string itself.
A URL is five parts wearing one coat
Here is a perfectly ordinary search link:
https://shop.example.com/search?q=green%20tea&sort=price®ion=us#results
It reads as a single line, but every character in it belongs to one of five labeled parts:
| Part | What it means | In our example |
|---|---|---|
| scheme | The protocol — how the browser should talk to the server | https |
| host | The server's address | shop.example.com |
| path | The resource being requested on that server | /search |
| query | Parameters, starting at the ?, joined by & | q=green%20tea&sort=price®ion=us |
| fragment | Everything after the # — a client-side target | results |
Two of these parts deserve a beginner's special attention. First, the query starts at the first ? and runs until the # — or to the end of the URL if there is no fragment. Inside it, & separates one parameter from the next and = separates a parameter's name from its value, which means those characters are structure, not data. Second, the fragment is the odd one out: it is never sent to the server at all. Everything from the # onward exists only inside the browser. Keep both facts in mind — they explain most of the surprises waiting for you later in this guide.
The workflow: paste, read, decode
The whole workflow has three moves. Open the URL Workbench, paste the complete URL, and read the labeled fields it shows you. Then decode the individual values that still look encoded. That is the entire routine. Let's take each move slowly, using the shop link from the table above.
Step 1 — Paste the whole URL
Copy the complete URL — question mark, fragment and all — and paste it into the tool's input. Do not trim anything first. The workbench needs the full string to know where each part begins and ends, and a partial paste is the most common way beginners end up with a misleading result. If you drop #results before pasting, the tool will correctly report that there is no fragment in what you gave it; the information was lost by you, not by the parser.
Step 2 — Read the parsed fields
The workbench splits the string into labeled fields, essentially the same breakdown as the table above:
scheme: https
host: shop.example.com
path: /search
query: q=green%20tea&sort=price®ion=us
fragment: results
Reading these fields one at a time is the habit this guide is trying to build. Notice that the query field is still shown in its raw, encoded form — green%20tea is exactly how the value travels over the wire. The workbench also lists the query parameters individually: q with the value green%20tea, sort with price, and region with us. Nothing has been decoded yet. You are looking at the URL exactly as the server would receive it, which is the right state of mind before you start interpreting anything.
Step 3 — Decode individual parameter values
This is the step beginners skip, and then wonder why their values look like green%20tea instead of green tea. Ask the workbench to decode the q value and you get back the text the user actually typed. Do the same for each value in turn: q is green tea, sort is price, region is us. Suddenly the URL has told you its story in plain language: a shop search for green tea, sorted by price, limited to the US region, landing on the results section of the page.
Notice what happened there: decoding one value at a time, after parsing, keeps the structure intact while revealing the data. That ordering — parse first, decode second — is the safety rail for everything else in this guide.
Percent-encoding in one paragraph
Percent-encoding is the URL's way of smuggling characters that would otherwise be mistaken for structure. A risky character — a space, a percent sign, a non-ASCII letter — is replaced by a % followed by two hex digits giving its byte value. A space becomes %20, a plus becomes %2B, a slash becomes %2F, and the percent sign itself becomes %25, which is why decoding is nothing more than running those substitutions in reverse. One nuance matters specifically for query strings: in the form-encoding convention many sites use, a literal plus sign is also read as a space, so q=green+tea and q=green%20tea usually mean the same thing. That convention trips people up often enough that we have a dedicated guide to plus signs and spaces, but for now the working rule is simple: %20 and + both decode to a space inside a query, while %2B decodes to a real plus.
Exercise: decode it, then rebuild one value
Reading is not the same as knowing, so do one full round trip yourself. Take this link:
https://books.example.com/search?q=green%20tea&filter=on%20sale#results
Paste it into the workbench and decode each parameter value: q becomes green tea and filter becomes on sale. Two words and a filter, in plain English. Now reverse just one of them. Suppose the user had actually typed green tea & matcha — a search phrase containing its own ampersand. If you rebuild that value with encodeURIComponent, you get:
encodeURIComponent("green tea & matcha")
// "green%20tea%20%26%20matcha"
That %26 is the whole point. It turns the inner ampersand into inert data, so the query still contains exactly one q parameter. If you had used encodeURI instead, the ampersand would have stayed bare, the server would have read matcha as a separate parameter with no value, and your search would have silently misfired. This is what we call the component boundary: a parameter value must be encoded as a single component, never as a whole URL, because only component encoding escapes the characters that could be misread as structure. The full reasoning — including where each function is appropriate — lives in our encodeURI vs encodeURIComponent guide.
Three surprises that catch beginners
Once you start decoding values, a few behaviors surprise almost everyone the first time. Meeting them here, with names, is cheaper than meeting them in production.
A plus turns into a space
Decode the value in q=green+tea and you get green tea. Inside a query string, the + is form-encoding for a space, not a plus sign. If a value genuinely contains a plus — a C++ tutorial search, a phone number, a base64 fragment — it arrives as %2B, which decodes to +. If you have ever typed a plus into a form and watched it become a space in the results, this is why.
%2F inside a value is not a path separator
The value in q=a%2Fb decodes to a/b, and that slash is data — part of the value — not part of the URL's path. Parsing happens on the raw, encoded form, and decoding happens afterward, value by value. A decoded slash never rewinds the parser to re-split the path or introduce a new segment. This is exactly why encoders escape slashes inside values in the first place: to make the answer to "is this a separator?" unambiguous.
Everything after the # stays in the browser
The fragment is never sent to the server. If your server logs show no trace of #results from the shop link, that is correct behavior, not a lost parameter — the fragment is for the browser, whether that means scrolling to a section of the page or holding routing state in a single-page application. A corollary catches many beginners: two URLs that differ only in their fragment are the same request as far as the server is concerned.
Keep the order: parse first, decode second. Decode only the individual value you are inspecting, never the whole URL up front — a decoded %26 or %3F inside a value can masquerade as structure and scramble everything you thought you knew about the parse.
A pocket glossary
These terms cover most URL conversations you will ever have. Keep the table handy until the vocabulary feels boring — boredom is the sign that it has sunk in.
| Term | Plain-English meaning |
|---|---|
| query string | Everything between the ? and the # — the parameter section of a URL |
| parameter | One name-and-value pair inside the query, joined by = and separated from its neighbors by & |
| percent-encoding | Replacing risky characters with a % plus two hex digits, so data cannot be mistaken for structure |
| reserved character | A character with structural meaning in a URL (?, &, =, #, /) that must be encoded when it appears inside a value |
| fragment | Everything after the #; read by the browser only, never sent to the server |
| component encoding | Encoding one complete value with encodeURIComponent, so every structural character it contains becomes inert text |
That is the whole workflow: paste the complete URL, read the labeled parts, decode the values that look encoded. Run it on the next link that confuses you — a tracking URL, an OAuth callback, a search with stacked filters — and it will stop being a string and become a structure you can question. When parsing feels routine and you are ready to build URLs of your own, the URL Workbench decision framework extends this same habit into deciding what to encode and where.
Reproduce every example locally with the JSON Inspector or the matching tool on the workbench. Nothing you paste leaves your browser.