URL Components Breakdown Tool
Enter any URL and see it decomposed into every component — protocol, host, port, path, query parameters, and fragment. Everything is processed client-side in your browser.
URL Parser
Parse and inspect URL components. View protocol, host, path, query parameters, and hash.
What are URL components?
A URL (Uniform Resource Locator) consists of several parts defined by RFC 3986: the scheme (https), authority (user@host:port), path (/page), query (?key=value), and fragment (#section). Understanding these components is essential for web development, security auditing, and SEO. Each part serves a distinct purpose in how browsers and servers locate and deliver resources.
// JavaScript — extract URL components
const url = new URL("https://user:pass@api.example.com:8080/v1/users?active=true#top");
console.log(url.protocol); // "https:"
console.log(url.hostname); // "api.example.com"
console.log(url.port); // "8080"
console.log(url.pathname); // "/v1/users"
console.log(url.search); // "?active=true"
console.log(url.hash); // "#top"
console.log(url.origin); // "https://api.example.com:8080"
# Python
from urllib.parse import urlparse
p = urlparse("https://api.example.com:8080/v1/users?active=true")
print(p.scheme, p.hostname, p.port, p.path)Common use cases
Developers break down URLs to debug routing issues, verify redirect targets, inspect deep-link structures in mobile apps, and validate canonical URLs for SEO. Security engineers analyze URLs to detect phishing attempts with misleading subdomains or encoded characters. The tool is also helpful when constructing URLs programmatically in REST clients or automation scripts.
Frequently Asked Questions
What is the difference between a URL and a URI?
A URL is a specific type of URI (Uniform Resource Identifier) that includes the access mechanism (like https://). All URLs are URIs, but not all URIs are URLs — a URN (like isbn:0451450523) is a URI that is not a URL.
What is the fragment in a URL?
The fragment (the part after #) identifies a specific section within a page. It is processed by the browser only and never sent to the server. Single-page applications often use fragments for client-side routing.
Related tools
Related Inspect Tools
HTTP Status Codes
Complete HTTP status code reference — 1xx, 2xx, 3xx, 4xx, 5xx with detailed explanations and use cases
Date Format Tester
Test date format patterns for strftime, date-fns, Moment.js, Go, and Java with live preview and token reference
Dockerfile Validator
Validate and lint Dockerfiles for syntax errors, security issues, best practices, and layer optimization
Kubernetes YAML Validator
Validate Kubernetes manifests for syntax, required fields, best practices, security, and resource limits