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.
💡 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?
What are the parts of a URL?
How do I add or edit a query parameter?
Does it encode special characters automatically?
Why does it say my URL is invalid?
What is the difference between the query string and the fragment?
Can it handle URLs with a port or credentials?
Related tools
Pro tip: pair this tool with Upside Down Text Generator and Text Similarity Checker for a faster SEO workflow.