Free URL Parser
Paste any URL and see exactly how it is built. This parser breaks a link into its protocol, host, port, path, fragment, and every query parameter, and also gives you the URL-encoded and URL-decoded forms.
The parsed components feed naturally into the URL Encoder & Decoder, and the path segment alone can be produced by the Slug Generator. For the host part of an internationalised address, the Punycode Converter is the tool.
How to use the URL Parser
- 1 Paste a URL.
- 2 Read its components separately: scheme, host, port, path, query and fragment.
- 3 Inspect the query string parsed into individual parameters, with repeated keys grouped.
- 4 Edit any component and see the reconstructed URL update.
Reading a URL as a data structure
A URL is not an opaque string — it is a structured address, and treating it as a string is where most bug-producing URL manipulation happens. Concatenating a path onto a base, for example, breaks when the base already ends with a slash or when the path contains characters needing encoding.
The correct approach is to parse, modify the relevant component, and reassemble. That is what the standard URL API does, and it is why constructing URLs by string concatenation tends to produce subtle defects such as duplicated slashes and unencoded characters.
- Scheme and host are case-insensitive; path and query are not.
- The fragment is client-side and never sent to the server.
- Repeated query keys have no universal representation.
- Percent-encoding is what makes reserved characters literal.
Anatomy of a URL
A URL is made of a scheme (https), an authority (user:pass@host:port), a path, an optional query string beginning with "?", and an optional fragment beginning with "#". Query parameters carry data in key=value pairs separated by "&". Understanding this structure is essential when debugging redirects, APIs, and campaign-tracking links.
Frequently asked questions
Which parts of a URL are case-sensitive?
The scheme and the host are case-insensitive, and the host is conventionally lowercased. The path, query string and fragment are case-sensitive. That distinction trips people up because a URL that differs only in the capitalisation of its host is the same resource, while a path that differs only in capitalisation may be a different one.
What is the fragment and why does the server never see it?
The fragment is the part after the `#`, and it is interpreted by the client rather than transmitted to the server. It identifies a position within a document or a route in a single-page application. Because it never reaches the server, it cannot be used for anything the server needs to know.
How should query parameters with multiple values be represented?
There is no single standard. The common conventions are repeating the key, using square brackets in the name, or comma-separating the values. Which one is correct depends entirely on the server or framework being addressed, which is why a parser shows you the grouping rather than imposing one.
Related Developer Tools
You might also need
Tools from other categories that people pair with the URL Parser: