SEOlust logo SEOlust
Developer & Utilities

URL Parser & Query String Builder

Break any URL into protocol, host, port, path, query, and fragment — then edit, add, or remove query parameters with a live, correctly-encoded rebuild. Free.

All tools
Protocol
Username
Password
Host
Hostname
Port
Path
Query string
Fragment
Origin
Query parameters (edit, add, or remove)

💡 How to use

  • Paste any URL to break it into its components instantly.
  • Edit, add, or remove query parameters — the URL rebuilds automatically.
  • Values are automatically percent-encoded so the result is always valid. Runs in your browser.

Free URL Parser & Query String Builder

Break any URL into its parts — protocol, host, port, path, query, and fragment — and edit its query parameters with a live rebuild. Add, change, or remove parameters and get a correctly encoded URL back instantly. Runs entirely in your browser. Free, no sign-up.

What does a URL parser do?

A URL is made of several distinct parts, and a URL parser splits them out so you can see exactly what a link contains. This tool shows the protocol (scheme), any username and password, the host and port, the path, the query string, and the fragment. It is invaluable for debugging links, understanding tracking parameters, and working with API endpoints where every part of the URL matters.

The parts of a URL

A typical URL breaks down like this:

  • Protocol — https: or http:, the scheme used to fetch the resource.
  • Host and port — the domain and optional port, e.g. www.example.com:8443.
  • Path — the location on the server, e.g. /path/page.
  • Query string — key–value pairs after the ?, e.g. ?q=hello&page=2.
  • Fragment — the part after #, used to jump to a section on the page.

How to use the query string builder

Editing parameters is instant:

  • Paste a URL to see its components and query parameters.
  • Change a value, add a new parameter, or remove one you do not need.
  • The rebuilt URL updates live, with values correctly percent-encoded.
  • Copy the finished URL when you are done.

Why encoding matters

Query values often contain characters — spaces, ampersands, slashes, non-English letters — that have special meaning in a URL or are not allowed at all. This tool percent-encodes values automatically as you build, so a space becomes %20 and an ampersand inside a value is escaped rather than breaking the query. That means the URL you copy is always valid and will be read the same way by any server or browser.

Common uses

A URL parser and builder helps in many everyday tasks:

  • Inspecting and cleaning up marketing and tracking parameters.
  • Building and testing API request URLs by hand.
  • Debugging why a link is not routing correctly.
  • Understanding redirects and the parameters they carry.

Pro tip

When a URL is not behaving as expected, paste it here first — seeing the path, query, and fragment separated out usually reveals the problem, such as a stray parameter or an unencoded value. To build campaign tracking links specifically, use our UTM Builder; to encode or decode a whole URL string, use our URL Encoder/Decoder.

FAQ

Is this URL parser free and private?
Yes. It is free and parses URLs entirely in your browser, so nothing you paste is uploaded or stored.
What are the parts of a URL?
A URL has a protocol (scheme), optional username and password, a host and port, a path, a query string of key–value pairs, and a fragment after the #. This tool shows each part separately.
How do I add or edit a query parameter?
Paste your URL, then edit the values, click 'Add parameter' to add a new one, or remove any you do not need. The rebuilt URL updates automatically with correct encoding.
Does it encode special characters automatically?
Yes. Values are percent-encoded as you build, so spaces, ampersands, and other special characters are escaped and the resulting URL is always valid.
Why does it say my URL is invalid?
The parser needs an absolute URL that includes the scheme, such as https://. Add the protocol at the start and it will parse correctly.
What is the difference between the query string and the fragment?
The query string comes after the ? and is usually sent to the server as parameters. The fragment comes after the # and is used by the browser to scroll to a section; it is not sent to the server.
Can it handle URLs with a port or credentials?
Yes. It parses the port and any username and password embedded in the URL and displays them as separate components.

Related tools

Pro tip: pair this tool with Upside Down Text Generator and Text Similarity Checker for a faster SEO workflow.