Developer

URL Parser

Break a URL into its protocol, host, path and parameters.

Processed in your browser

A URL, the address of a page or file on the web, is made of several parts with different jobs. One part says how to connect, one names the server, one names the resource, and others carry extra data. This tool splits a web address into those parts and lists them, with the query parameters decoded into a table.

The work is done by your browser's own URL parser, so the result shows how a browser understands the address. Nothing is sent to the IP Tracker server, and the address is not opened. The page shows "Processed in your browser".

How to parse a URL

  1. Paste or type the complete address into the field, including the scheme at the start: https://example.com/path?hello=world.
  2. Click Calculate.
  3. Read the rows: Protocol, Hostname, Port, Path, Query string, Fragment and Username. A part that the address does not have is shown as "None".
  4. If the address has a query string, look at the Query parameters table under the rows. It lists each parameter with its name and its decoded value.

An address without a scheme, such as example.com/page, is not accepted, because without one the text is not a complete URL. Put https:// in front and try again.

The result can be copied or downloaded as JSON with the Copy JSON and Download JSON buttons.

The parts of a URL

The table uses this address as its example: https://user@shop.example.com:8443/products/shoes?color=red&size=42#reviews.

RowIn the exampleWhat it is
Protocolhttps:The scheme. It tells the browser which protocol to use for the connection
Hostnameshop.example.comThe server the browser will contact. This part decides where the request goes
Port8443The numbered entry point on that server. Shown as "(default)" when the address has none
Path/products/shoesThe resource on the server, written like a file path
Query string?color=red&size=42Extra data for the server, as pairs of name and value
Fragment#reviewsA position or state inside the page. The browser keeps it and does not send it to the server
UsernameuserAn optional login name placed before an @ sign. Rare on the web today

A password can follow the username, as in user:secret@example.com. The tool does not display it.

The rows show the address as the browser understands it, which can differ a little from what you typed. The hostname is written in lowercase. An address with nothing after the hostname gets the path /. Path segments such as .. are resolved, so /a/../b becomes /b.

Default ports

Each scheme has a standard port: 80 for http and 443 for https. An address that names no port uses the standard one, and the Port row shows "(default)". A number appears in the row when the address names a different port, as in https://example.com:8443/.

Non-standard ports are common on development servers, admin panels and network devices. To test whether a port on a public host accepts connections, use Port Checker.

Percent-encoding

Only a limited set of characters may appear in a URL as they are. Other characters, and characters that have a special meaning at the place where they are used, are written as a percent sign followed by two hexadecimal digits. This is called percent-encoding or URL encoding.

EncodedCharacterWhy it is encoded
%20spaceA space is not allowed in a URL
%26&It would otherwise start a new parameter
%3D=It would otherwise separate a name from its value
%3F?It would otherwise start the query string
%23#It would otherwise start the fragment
%2F/It would otherwise separate two path segments
%25%The percent sign itself has to be encoded
%C3%A9éLetters outside basic ASCII are encoded as their UTF-8 bytes

In a query string a plus sign also stands for a space, a convention that comes from web forms. q=red+shoes and q=red%20shoes mean the same.

The Query parameters table shows values after decoding, so %20 and + appear as spaces and %C3%A9 appears as é. The Query string row keeps the raw, encoded form. Comparing the two shows what an encoded link really says.

A value is sometimes encoded twice by mistake. %2520 is %20 with its percent sign encoded again, and it decodes to the text %20 instead of a space. If a decoded value in the table still contains percent codes, double encoding is the likely cause.

Query parameters and repeated names

The query string starts at the first ?. Parameters are separated by &, and each one is a name, an equals sign and a value. ?color=red&size=42 has two parameters. A parameter can have an empty value, as in ?debug=, or no equals sign at all, as in ?debug.

The same name may appear more than once, as in ?tag=news&tag=sport. The table lists every occurrence in order. What the receiving application does with repeats depends on its software. Some applications read the first value, some the last, and some collect all of them into a list. When a link behaves in an unexpected way, a repeated name is worth looking for.

The fragment stays in the browser

Everything after # is the fragment. The browser does not include it in the request, so the server never receives it and it does not appear in server logs. Its original use is to jump to a part of a page: #reviews scrolls to the element with that identifier.

Web applications also use the fragment to keep state, such as which tab is open. Two addresses that differ only in the fragment fetch the same resource from the server.

Tracking parameters

Many links carry parameters that exist for measurement and do not change what the page shows. The best known are the five that begin with utm_: utm_source, utm_medium, utm_campaign, utm_term and utm_content. They tell the site's analytics where a visitor came from. Advertising and social platforms add click identifiers of their own, such as gclid and fbclid, with long values that look random.

Parsing a link shows which parameters are content and which are tracking. Removing the tracking ones normally gives a shorter link to the same page. Parameters such as id, page or q are a different matter, because the site needs them to decide what to show.

Reading the real hostname of a suspicious link

The Hostname row answers the question that matters with a doubtful link: which server the browser would contact. Links are built to mislead in a few recurring ways, and the parsed result exposes each of them.

  • A trusted name is used as a subdomain. In https://example.com.login.example.net/account the hostname is example.com.login.example.net. Read a hostname from the right. The registered domain is at the end, here example.net, and everything to its left is a label that its owner chose freely.
  • A trusted name is placed before an @. In https://example.com@203.0.113.5/ the part before the @ is a username. The Username row shows example.com, and the Hostname row shows 203.0.113.5, the real destination.
  • Letters from other alphabets that look like Latin ones replace the originals. The browser converts such a hostname to its encoded form, so the Hostname row shows a name that contains xn-- instead of the familiar one.
  • The destination is written as one large number. A hostname made only of digits is an IPv4 address in decimal notation, and the browser converts it: http://3232235777/ has the hostname 192.168.1.1. IPv4 to Decimal does the same conversion.
  • The link points to a trusted site that forwards the visitor elsewhere. Look for a parameter such as url, next or redirect that holds another web address. Its decoded value is in the Query parameters table.

A shortened link shows only the hostname of the shortening service. To see where it leads without opening it, enter it in HTTP Status and read the Redirects to row.

What the parser does not do

It does not contact the address. It cannot tell whether the page exists, what it contains or whether it is safe, and a harmless structure does not make a link trustworthy.

It works on complete addresses only. Text without a scheme and relative paths such as /page?id=1 are not accepted.

It does not display a password that is part of the address, and it does not say who is behind the hostname. IP WHOIS shows the registration record of a domain.

Frequently asked questions

What is the difference between a URL, a domain and a hostname?

A URL is the whole address, from the scheme to the fragment. The hostname is the part of it that names the server, such as shop.example.com.

A domain is the name that was registered, here example.com. A hostname is either the domain itself or a name under it. One domain can have many hostnames, and each can lead to a different server.

Why does the tool not accept my address?

The most common reason is a missing scheme. example.com/page is not a complete URL, while https://example.com/page is. Add https:// or http:// at the start.

Spaces at unexpected places or a broken port number, such as letters after the colon, can also make an address invalid.

What does %20 mean in a URL?

It is an encoded space. A URL cannot contain a space, so the space is written as a percent sign and its code in hexadecimal, 20. Other characters are encoded the same way, each with its own code.

The Query parameters table shows the decoded text, so you can read the values without translating the codes yourself.

Is the part after the # sent to the server?

No. The fragment stays in the browser. The server receives the path and the query string, and the browser uses the fragment afterwards, for example to scroll to a heading.

Can I delete the utm parameters from a link?

Yes, in nearly all cases. They exist for the statistics of the site and do not select the content. Remove each utm_ pair together with its &, and keep the ? only if other parameters remain.

The page normally loads the same. The site counts your visit without knowing which campaign or message it came from.

How can I tell where a link really goes?

Copy the link without opening it, paste it here and read the Hostname row. Look at the end of the hostname: the last two or three labels are the registered domain, and that is who you would be visiting.

Then check the Username row, which should say "None", and the Query parameters table for values that are web addresses themselves. A name before an @ or a forwarding parameter means the visible name is not the destination.

Is the address I enter sent to IP Tracker?

No. The parsing happens in your browser, and the input is not sent to the IP Tracker server. That matters for links that contain private data, such as password reset links or addresses with access tokens in them.

What happens when the same parameter appears twice?

The URL is still valid, and the table shows a row for each occurrence. Which value the website uses depends on how it was programmed.

Lists are often sent this way on purpose, for example several selected filters in a shop. An accidental repeat can make a site use a value you did not expect.