URL Analyzer

Break down any URL into its components: protocol, domain, path, query parameters, and fragments.

HTTP/HTTPS protocol will be added if missing

Understanding URL Structure

URL Format

protocol://username:password@domain:port/path?query=value&another=param#fragment

A complete URL can contain all these parts, though many are optional depending on the use case.

Protocol

The scheme defining how data is transferred (http, https, ftp, etc.)

https:// (HTTP Secure)

Domain (Host)

The server address where the resource is located.

example.com

Port

The network port (optional, defaults: 80 for HTTP, 443 for HTTPS).

8080

Path

The resource location on the server.

/path/to/resource

Query Parameters

Key-value pairs passed to the server (after ?). Separated by &

?id=123&name=value

Fragment

Client-side anchor link (after #). Not sent to the server.

#section-name

Complete URL Example

https://user:password@example.com:8080/search/results?q=networking&sort=date#top-result

Protocol: https://

Credentials: user:password@

Domain: example.com

Port: 8080

Path: /search/results

Query: q=networking&sort=date

Fragment: top-result

URL Encoding

URLs can only contain certain characters. Special characters are encoded as %XX where XX is the hexadecimal representation.

Space: %20
?: %3F
&: %26
Accents: UTF-8 encoded