Cookies This site keeps only what it needs to work. There is no analytics and no advertising on it today, and nothing here follows you to other sites. Read the privacy policy

Choose what to allow
+92 312 8299940Free Quote
EN – Language: English
Free tool, nothing to install

URL Parser
Every Part Of The Address, Labelled

This URL parser parses a URL into components such as scheme, host, port, path, query and fragment using the reader built into your browser. Each component is identified by name, and the individual parameters are displayed below.

  • FreePrice
  • 11Parts
  • NoneSign-up
  • NoneUploads

URL Parser

Every part of an address, labelled

Scheme
https
Host
shop.example.com
Subdomain
shop
Port
8443
Path
/winter/boots
Path depth
2
Last segment
boots
Query string
colour=blue&size=9&utm_source=newsletter
Fragment
reviews
Origin
https://shop.example.com:8443
Full length
91 characters
Query parameters
  • colourblue
  • size9
  • utm_sourcenewsletter

Everything is parsed with your browser's own URL reader, so what you see here is exactly what a browser sees.

Ready. Paste an address and every part appears.

Your browser does all of the work here, in this tab. We upload nothing, store nothing and log nothing.
Add a link to this tool on your own site

Copy the code below and drop it into your page. It places a link to this free tool.

Guides for this tool

Articles with worked examples, tables and a short video that help you get more from this tool.

  • UTM ParametersUTM Parameters

    UTM parameters explained: what each one does, naming conventions, a worked example URL, and GA4 tips.

    9 minutes of reading · video guide inside

The short version

A URL Broken Into Its Pieces

An address is a single string of characters, yet can be divided into eight different parts: the scheme; the host name; the port number; the path; the query; the fragment; and the origin and subdomain which are derived from the host.

Each section of a URL gives unique info. As an example, the host indicates a specific device, the path finds the location of a particular item, and the query finds the version of that item.

All of it is determined by one question: When does each section end? This answer is found in the URL Standard that is implemented by your browser.

This tool uses the actual implementation of the feature, instead of using regular expressions. So, you are viewing the exact same features that would be visible to a browser.

What A Browser Quietly Normalises

A browser lowers the host name and removes the last dot from the URL. The browser also removes any default ports from the URL; so, https://example.com:443/ will be converted to https://example.com/ before the URL is examined by any other process.

Diagram of a web address split into its parts: scheme, host, path, query parameters and fragment
One address, split into parts.

When an empty path is given, it will be represented by a single forward slash. Also, the use of a backslash as a path separator is converted to a forward slash, which often catches people off guard.

That normalisation is the reason a hand-written parser disagrees with reality. The URL interface does the same work everywhere.

The Query String Is Where Detail Hides

Parameters are ordered pairs, separated with an "&" sign, and each pair is properly encoded. There may be multiple parameters that have the same name, and in some cases, the order of these parameters is important for the server.

URL parser with a long web address typed in and its scheme, host, port, path, query and fragment listed below
Each part of the address, listed out.

Reading these values manually will no longer work after you reach about four. The purpose of a query string parser is to list each value on its own line, so when there are multiple identical keys, it becomes very apparent.

The decode option displays the original (readable) value next to the encrypted (raw) value. This allows you to find a value that has been processed by the encoding process twice.

Why the # Fragment Stays in Your Browser

All of the content that follows the ’#’ symbol remains within the web browser (client). A web server will not get this content and so cannot log it. So, analytics software must use JavaScript to read the content.

Content Parameters And Tracking Parameters

There are some parameters that will change what appears on the page. These include, but are not limited to, size, color, page number, and sort order. These parameters should be included in both the URL (or address) and the canonical tag.

URL parser with the tracking parameter filter on, so the utm and ref values are marked and a clean link is offered
Tracking parameters are marked.

Some are only carrying tracking info. Campaign tags, click IDs, session markers, etc., should be excluded from both canonical tags and internal links.

A tracking switch will indicate the second type of flag, with the same list read by the site’s canonical tag generator. Both tools use the same list, which ensures they are consistently aligned.

What To Do With A Long Query String

Sort the variables here into two groups. One category will be those that change the page, while the other category will be those that simply find the source of the visitor.

URL parser with query parameters sorted A to Z and decoded, so the list is in order and readable
Sort and decode the query list.

In the canonical tag, the first group should be used because if you put another value in it, you have created a truly unique page.

The second group has no fixed location. Strip the group before storing an address, before adding an address to a sitemap, and before linking internally.

The clean copy button splits your address from the report so it can be reused safely.

Why Six Addresses Can Be One Page

With or without www, with or without http/https, with or without a trailing slash. All combinations answer. Search engines consider each combination as potential sources of the same content until a canonical tag resolves it.

Video guide

Using the URL Parser: A Short Video Guide

This brief video shows each step from start to finish. Choose your language below, and switch on captions if they help.

How it works

Working With the URL Parser, Start to Finish

Two steps, and you may skip the second. The parts show up while you type.

  • Paste an address

    At the beginning of the URL, the scheme is an option. If you enter just a domain name, a browser will add "https://" to the front because that is how a browser handles a domain name.

  • Read the parts

    Rows one through eleven are the scheme and the total length. A row with nothing in it represents a truly missing section.

  • Look at the parameters

    Every row has a different value (decoded if desired). When the "Track Switch" is activated, each row that contains no data will be identified.

  • Copy the clean version

    One button copies the address without its tracking parameters or fragment. That is the version worth sharing or storing.

Why this one

What Sets This URL Parser Online Apart

Splitting a string on slashes is easy and incorrect. Here are some of the differences that result from using the actual method.

  • The Denwix parser splits the URL without any network call

    The normalisation of URLs, default ports, and any other strange cases will act like a typical web browser.

  • Parameters as rows

    Twenty parameters are read as twenty separate lines of data instead of a single long line, making it possible to find duplicate names as opposed to being obscured by the format.

  • Tracking marked

    The tool uses the same list of campaign tag and click id lists that is used by the canonical generator. As long as both tools use this list, they will always return the same results.

  • Decoded and raw

    One switch is used to show the readable value. When a value has been run through the encoder twice, it becomes clear when the user flips the switch.

  • A clean copy button

    The URL will be copied without tracking parameters or fragments, making it suitable for use as a canonical tag or for sharing.

  • Nothing leaves your tab

    Addresses are used to store session tokens and order numbers. This website does not retrieve anything or log anything, because the browser parses it.

Good habits

Rules For Reading And Building Addresses

These come up in every audit, every migration and every analytics argument.

  • Parse with a URL object, never a regex. Every single language has a regex (regular expression). It is capable of handling the straightforward cases correctly, but, it will fail to handle the more complex cases properly.
  • Keep tracking parameters out of canonicals. The use of a canonical tag with the campaign’s URL informs search engines that the campaign version of your site is the correct one.
  • Decide on the trailing slash once. Choose only one form for your entire site and then use a redirect on all other forms. If you have two versions of each URL, you will have two of everything in your reporting.
  • Keep names and emails out of query strings. The data lands in server logs, analytics, and referral headers, none of which were intended to store private info.
  • Watch the length. The upper limit of a safe address length (under 2,000 characters) is what many browsers can handle, but some servers and proxies may not.
  • Lowercase the host, not the path. Hosts names are case-insensitive, but paths are not. Because of this, most servers will treat /About/ and /about/ as two distinct pages.
  • Treat the fragment as client-only. Nothing on the server ever sees it, so no log records it and no redirect can act on it without JavaScript.
  • Keep addresses readable where people see them. Words can help people find things more easily than numbers when they’re searching online, sending messages with friends and family, and calling for customer service. One day, someone will need to read your word-based explanation.
  • Log the address, not the parameters. A full query string in a log file contains whatever a user has entered into the search box. Before writing any info down, remove the data that is irrelevant.
  • Sort parameters in generated links. Stable order means the same page generates the same address every time. That’s why caching and comparing work.
Worth avoiding

Six URL Mistakes Worth Knowing

Until a report, crawl or support ticket exposes each of these, they seem completely harmless.

  • Splitting on the first question mark

    The presence of a question mark within the value of a parameter means that if you split on the question mark, your address will be cut off too soon.

  • Expecting each parameter to appear once

    When a user enters a query with a repeated name, most servers interpret this as a list. If your parser only returns one item from the list, you will lose the other items.

  • Lowercasing the whole address

    The host is safe to lower, the path is not. This is how a tidy-up script produces a page of 404s.

  • Ignoring the port

    A non-default port makes a different origin. Therefore cookies, storage and CORS all treat it as another site.

  • Carrying session ids in the query

    They are then shared, indexed, and logged; in each instance, another individual holds access to the account.

Questions

Address Questions People Ask

Which pieces make up a URL, from scheme to fragment?

The scheme, the host, an optional port, followed by the path, the query, and the fragment. The origin consists of the first three parts; the subdomain includes anything that appears before the registered domain.

Why does the port sometimes disappear?

Because 443 for https and 80 for http are defaults. A browser removes them, so the address you get back can differ slightly from the one you typed.

Can a query string parser show repeated names?

Yes, and this one lists each occurrence on a separate line. If you parse using a parser that only returns the most recent value, you will be missing out on a significant amount of data from the server.

How do a query and a fragment differ?

The URL goes to the server, but the part that starts with "#" doesn’t. That’s why the server can’t find out what you did after the "#" (or if you did anything at all).

What is the longest URL browsers will accept?

The URL Standard has no upper limit on its length. But, in most cases, you will want to limit the length of your URLs to less than 2,000 characters as many of the older server software and proxy software do not support anything longer than that.

Why does my address change when I paste it?

A browser processes as it reads: converting the host name to all small letters (lowercase), removing any default port numbers, and changing forward slashes (/) to backward slashes (\). You can now see what your page will look like after processing.

Which query parameters does Denwix flag as tracking?

Campaign tags, click ids from advertising platforms and session identifiers are marked by the tracking switch with the same list as this site does in other areas.

Is a url parser online safe for private links?

Because of that, the page will not send anything anywhere. Your browser will read the URL from this tab, and this site will never access it.

Does swapping the order of query parameters change the page?

To a server, sometimes. To a cache and to a comparison, always: two addresses with the same parameters in a different order are two distinct strings.

Can I clean an address here?

Yes. The second copy button gives you the address without tracking parameters or the fragment, which is the version worth sharing or storing.

More free tools

Tools For Addresses

Reading one address is usually the first step. Here are three to reach for next.

Ready to Break a URL Into Its Parts?

Paste a web link (URL) and view all its parts. This URL parser is free, does not need an account, and will never access the website you are parsing.

Prefer Denwix on GoogleReview Denwix on Google