URL Parser

Results

Scheme
Protocol
Hostname
Directory
Resource
Host
Userinfo
Authority
Username
Password
Port
Subdomain
Domain
Tld
Path
Filename
Filesuffix
Query
Hash
Query String

Ops! Error

About this tool:

URL Link Splitter - Split a URL String Into Its Components & Query Parameters

URL Parser is World's Simplest URL Link Splitter for web developers and programmers. Just paste the URL link in the form below, press the Parse URL button, and split the URL into its components and query parameters.

What is a URL?


URL stands for Uniform Resource Locator. A string of characters identifies the location of the resource on a computer network or internet.

Generally, you type the URL in your browser bar to visit a specific web page or download any image, file, or other documents on the internet.

An example of the URL would be https://iplocation.io/

What is a URI?


URI stands for Uniform Resource Identifier. It's used to identify the resource by its name, location, or even both.

URIs are the superset of both URLs and URNs. Therefore, the URLs and URNs themselves are also URIs. But not every URI is a URL or URN.

To put it simply, if there is a protocol like http and https, then its URL. Suppose the protocol is urn, then it's URN.

An example of a URI of a zip file on an FTP server would be ftp://abc.com/file.zip.

What is a URN?


URN stands for Uniform Resource Name. It's used to identify the resource by its name. You can easily judge whether its URLs or URNs from simply seeing the URIs. Because URNs always start with a protocol urn.

An example of a URN that represents a UUID would be urn:uuid:8b988735-edf7-4b81-97bf-ce6f4bf7e883

What is the structure of the URL, or what are the different URL parts?


URL consists of several parts. Some URL parts are essential, and some are optional. However, generally, URL is divided into the following features.

Scheme/Protocol: The scheme or the protocol specifies which protocol is used to access the resource on a computer network or internet. The most generally used protocols on the internet include http, https, ftp, sftp, mailto, and file.

An example would be https://www.abc.com.

Userinfo: Userinfo is an optional part that consists of a username and an optional password followed by the symbol @ right before the hostname. A colon (:) splits the username and password.

An example would be username:password.

Hostname: One of the essential parts always present in every URL indicates the targeted server is a hostname. A hostname consists of three parts, i.e., subdomain, domain name, and TLD (Top Level Domain), respectively, where the subdomain is optional. A hostname can be just an IP address if no domain name is assigned.

Port: The port number defines which port to reach the target's server-specific resource. The most used protocols are https and http. By default, these protocols use port numbers 80 and 443, respectively. That's why they are exempted from the URLs.

For example https://www.abc.com:1234

Path: Path defines the location of a resource on the server in the internet world. It can be either a physical or a theoretical location. The separator for a URL path hierarchy is forward slashes (/). Suppose the path element that defines the post's title can also be called a slug in a blog post URL.

An example would be https://www.abc.com/post/my-first-post

Query String: It's an optional part of the URL. Whatever comes after the "?" sign, the URL considers it a query string. Like in Google or Facebook ads, the query parameters track the URL.

An example would be https://www.abc.com/?source=google&medium=cpc

The query string format is a key-value frequently found in dynamic pages. Ampersand "&" sign separates each query string parameter because space is not allowed in URLs.

Fragment: Fragment is an optional part known as a hash or an HTML anchor located at the last part of a URL. The fragment is represented by a hash symbol # followed by a string. It refers to a specific section within a page, such as a heading of an article.

An example would be https://iplocation.io/ipv4-to-ipv6#what-is-ipv4
https://iplocation.io/ipv4-to-ipv6#what-is-ipv6

Authority: That part of the URL consists of user info, hostname, and port. However, the user info and port are the optional part.

File suffix: It's a URL file extension. It defines what type of file it is.

How to use the URL Parser to split a URL string into its components and query parameters?


The URL is divided into several parts, some are essential, and some are optional. However, various online tools are available to split the URL into different URL parts, especially its components and query parameters. To avail of one of these tools, perform the following steps.

  • Open the URL Parser - URL Link Splitter Tool.
  • Enter the URL in the "Provide URL" section, and click on the "Parse URL" button.
  • The tool parses the URL and splits it into different URL parts.

As an example, you can use the following sample URL

https://adam:myFirstPassw0cd4v4w@www.abc.com:90/anything/this.html?param1=value1¶m2=value2¶m3=value3#here

The tool provides the following results

Scheme= https

Protocol= https

Hostname= www.abc.com

Directory= /anything

Resource= /anything/this.html?param1=value1¶m2=value2¶m3=value3#here

Host= www.abc.com:90

Userinfo= adam:myFirstPassw0cd4v4w

Authority= adam:myFirstPassw0cd4v4w@www.abc.com:90

Username= adam

Password= myFirstPassw0cd4v4w

Port= 90

Subdomain= www

Domain= abc.com

Tld= com

Path= /anything/this.html

Filename= this.html

Filesuffix= html

Query= param1=value1¶m2=value2¶m3=value3

Hash= #here

Query String

  • param1= value1
  • param2= value2
  • param3= value3