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
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.)
Domain (Host)
The server address where the resource is located.
Port
The network port (optional, defaults: 80 for HTTP, 443 for HTTPS).
Path
The resource location on the server.
Query Parameters
Key-value pairs passed to the server (after ?). Separated by &
Fragment
Client-side anchor link (after #). Not sent to the server.
Complete URL Example
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.