Development

URL Inspector

Analyze any URL and break it down into components. Extract protocol, hostname, port, pathname, query parameters, and fragments instantly.

URL Inspector
Analyze and break down any URL into its components
No URL entered
No protocol
No origin
No pathname
No hash
No host
No hostname
No port

About URL Components

  • Href: The full URL as a string
  • Protocol: The URL scheme (e.g., https:, http:, ftp:)
  • Origin: The domain and port (e.g., https://example.com:8080)
  • Host: The hostname and port (e.g., example.com:8080)
  • Hostname: The domain name without port (e.g., example.com)
  • Port: The port number (e.g., 8080)
  • Pathname: The path after the domain (e.g., /path/to/page)
  • Search: The query string including the leading '?' (e.g., ?param=value)
  • Hash: The fragment identifier including the leading '#' (e.g., #section)
  • Each component can be copied individually by clicking the copy button

About this tool

Instantly analyze and dissect any URL into its fundamental components for debugging, development, and security analysis. Perfect for web developers, security professionals, and digital marketers who need to understand URL structure, check URL syntax, or debug query strings. Extract protocol, hostname, port, pathname, query parameters, and hash fragments with a single click. Each component can be copied individually for development, testing, or documentation purposes. Essential for API development, web scraping, and URL validation tasks.

How to use the URL Inspector

  1. Paste a full URL, including https://, into the Enter URL box.
  2. Read each part, from Href and Protocol to Pathname, Search and Hash, as it updates.
  3. Check Query Parameters for each name and its decoded value.
  4. Click the copy icon beside any part or parameter to copy it.
  5. Press Reset to clear the URL.

Give us your feedback

Help us improve URL Inspector!

Frequently asked questions

What are the parts of a URL?

A URL is made of a protocol such as https:, a host (the hostname plus an optional port), a path, an optional query string that starts with ? and an optional fragment that starts with #. The origin is the protocol, hostname and port together, which browsers use for security rules like CORS.

Why does my URL show as invalid?

The inspector uses your browser's standard URL parser, which needs an absolute URL that includes a scheme. Add https:// to the front of addresses like example.com/page. A space or other invalid character in the domain name will also cause an error.

What is the difference between host and hostname?

Hostname is just the domain or IP address, like example.com. Host adds the port when one is given, like example.com:8080. Default ports, such as 443 for https, are left out of both, so the Port field stays empty for most URLs.

Does the tool visit the URL?

No. It only parses the text you paste, in your browser, and never loads the page. The URL you enter is recorded in usage analytics, so remove tokens, passwords or other sensitive query values before inspecting a link.

URL Inspector screenshot