URL Parser

Parse and inspect any URL into its components

What is a URL Parser?

A URL parser breaks down any URL into its individual components — protocol, hostname, port, pathname, query parameters, and hash fragment. It also decodes percent-encoded values so you can see the human-readable query strings behind any URL.

How to Use This URL Parser

  1. Paste any URL into the input field — it must include the protocol (e.g. https://)
  2. All URL components are displayed instantly with copy buttons for each part
  3. Query parameters are shown in a table with both encoded and decoded values
  4. Use the copy button next to any component to grab its value

Common Use Cases

  • Debugging URL construction in web applications and APIs
  • Decoding percent-encoded query parameters and fragments
  • Inspecting redirect URLs and tracking parameters
  • Extracting specific URL components for documentation or testing

Frequently Asked Questions

Why does the URL need a protocol?
The browser's URL constructor requires a valid protocol (like https:// or ftp://) to determine how to parse the string. Without it, the input cannot be reliably parsed into components.
What does percent-encoding mean?
Percent-encoding (or URL encoding) replaces unsafe characters with a % followed by two hexadecimal digits. For example, a space becomes %20. The parser shows both the encoded and decoded forms so you can see the original values.
What is the difference between host and hostname?
hostname is just the domain name (e.g. example.com), while host includes the port if one is specified (e.g. example.com:8080). When no custom port is present, they are the same.