URL Validator & Parser
Validate and parse any URL into protocol, hostname, path, and query parameters.
β Valid URL
https:
Protocol / Scheme
www.example.com
Hostname
8080
Port
/path/to/page
Path
?foo=bar&baz=qux
Query String
#section
Fragment / Hash
example.com
TLD
β Yes
HTTPS
β Yes
Has www
No
Localhost
Query Parameters (2)
foobar
bazqux
URL Structure
scheme://hostname:port/path?query#fragment
- Protocol β e.g. https:, http:, ftp:
- Hostname β Domain or IP address
- Port β Default: 80 (http), 443 (https)
- Path β Resource location on the server
- Query β Key=value parameters after ?
- Fragment β Client-side anchor after #