What is a URL builder?
A URL builder assembles a complete URL from its parts — protocol, host, path, and query parameters — with every part encoded correctly. The default here builds https://example.com/search?q=hello%20world&page=2 from four fields: https, example.com, search, and two parameters. The result is 49 characters long and has 2 query parameters.
Building a URL by hand is error-prone. A space in a query value must become %20, an ampersand in a value must become %26, and a missing slash after the host makes the path part of the host. A builder handles the joining and the encoding, so the URL that comes out is valid.
This tool is different from the URL parser on this site, which splits a URL into its parts. Use the parser to take a URL apart, and this tool to put one together — especially a link with tracking parameters, where the encoding matters most.
How URL building works
The URL is joined in order: the protocol, then ://, then the host, then the path, then a ? and the query string. The default builds https://example.com/search?q=hello%20world&page=2 — https, then ://, then example.com, then /search, then the two parameters joined with &.
The path gets a leading slash if it does not have one, so "search" and "/search" build the same URL. The query parameters come one per line, each as key=value, and each key and value is percent-encoded separately — which is the detail that makes the tool correct.
Encoding is what the builder is for. The value "hello world" becomes "hello%20world", because a space is not allowed in a URL and must be written as %20. An ampersand inside a value becomes %26, so it is not mistaken for the separator between parameters. Without encoding, the URL would be broken in exactly the way that is hardest to notice.
Encoding is the step that makes a URL safe to send, and the builder does it per part rather than per URL. A parameter value with a space becomes %20, an ampersand becomes %26, and a question mark becomes %3F, because those characters have a meaning in a URL and a value that contains them would be read as structure rather than as data. The builder encodes each value on its own, so a value with an ampersand stays one value instead of splitting into two parameters. A URL built by hand often skips that step, and the link breaks in a way that is hard to see.
Protocol, host, and path, explained
The protocol is https by default, and http is the other choice. HTTPS is the standard for anything on the public web, and HTTP is for local development and for old systems. The protocol is the part before ://, and it decides how the browser connects.
The host is the domain, such as example.com, with an optional port — example.com:8080 — and an optional subdomain, such as www.example.com. The host must not contain a path or a query string; those go in their own fields, which is what keeps the parts separate.
The path is the part after the host, such as /search or /products/42. It is the address of the page or the resource on that host. A path with spaces or special characters is encoded like a query value, so "my page" becomes "my%20page" — though paths with spaces are best avoided entirely.
The path is the part that trips people up, because it looks like a file path but follows URL rules. A path with spaces must encode them, a path with a trailing slash points at a directory rather than a file, and a path that starts with two slashes is read as a different host entirely. The builder joins the parts with single slashes and encodes the path as given, so a path typed as search/results becomes /search/results and a path typed with a leading slash stays a single slash. The preview shows the finished URL, which is the place to check the path.
A worked example: a search link
Take the defaults: protocol https, host example.com, path search, and two parameters — q=hello world and page=2. The builder joins them into https://example.com/search?q=hello%20world&page=2, which is 49 characters with 2 parameters. The space in "hello world" became %20, and the two parameters are joined with &.
Change the value to "fish & chips" and the output becomes q=fish%20%26%20chips — the space and the ampersand are both encoded, so the value stays one parameter instead of splitting into two. That is the encoding doing its job: without it, the & would start a new parameter called " chips".
Try a link with no parameters: clear the parameters box and the output is https://example.com/search, with no ? at all. A URL with no query string has no question mark, which the builder handles by leaving it out entirely.
Who uses a URL builder, and why
Marketers are the main users. A campaign link needs tracking parameters — utm_source, utm_medium, utm_campaign — and each value must be encoded, or the analytics will read the wrong values. A builder produces the link once, correctly, instead of by hand in a spreadsheet.
Developers are the second group. An API call needs a URL with parameters, and building it by string concatenation is the classic source of encoding bugs. A builder shows the correct URL, which can then be copied into code or into a test.
Anyone sharing a link with a search is a third group. A link to a search, a filtered list, or a pre-filled form needs the parameters encoded, and a builder does it without the user learning percent-encoding. A URL parser takes a URL apart when you need to check what a link contains.
Marketers are a third group. A campaign link needs tracking parameters — the source, the medium, and the campaign name — and each one must be encoded, because a campaign name with a space will break the link. The builder is the tool for that link: type the base URL, add the three parameters, and the finished link is ready to paste into the email or the ad. The same link built by hand is the one that loses a parameter to an unencoded ampersand.
URL builder vs URL parser
A builder assembles a URL; a parser takes one apart. The URL parser on this site splits a URL into protocol, host, path, and query, which is how you check what a link contains. This tool does the reverse: it takes the parts and builds the link, which is how you make one. A base64 encoder decoder handles the other encoding a URL can carry, when a value is base64 rather than percent-encoded.
The two tools share the same encoding rules, so they agree. A URL built here parses back into the same parts there, and a URL parsed there builds back into the same URL here. That round trip is the test that both tools are correct.
A URL encoder decoder encodes and decodes single values, which is the tool for one value rather than a whole string. Use it when a single parameter needs encoding and the whole URL does not need read them all at a glance.
A builder is not a parser, and the distinction matters when the goal is to read a URL rather than to make one. A parser takes a finished URL and splits it into protocol, host, path, and parameters, which is the view that shows what a link contains. A builder takes the parts and assembles the URL, which is the view that shows what a link will be. Use the builder to make a link and the parser to check one that arrived from elsewhere — the two tools do opposite jobs on the same structure.
Common URL building mistakes
The first mistake is a space in a value that was not encoded. A link with "q=hello world" written literally breaks at the space, and the browser sends only "q=hello". Encode the space as %20, which the builder does automatically — never paste a raw space into a URL.
Second: an ampersand inside a value. A value of "fish & chips" written literally splits into two parameters, "q=fish" and " chips". Encode the & as %26, which the builder does for every value.
Third: two question marks. A URL has one ? that starts the query string, and parameters are joined with &. A hand-built URL with a ? before every parameter — ?q=x?y=z — is broken, because everything after the second ? is part of the last value.
Fourth: the wrong protocol. An https link to a server that only speaks http fails, and an http link to a site that requires https redirects or fails. Pick the protocol the server actually uses — https for the public web, http for local development.
A second mistake is encoding a value twice. A value that is already encoded — a search term that already contains %20 — will be encoded again if it is pasted into the builder as if it were plain text, and %20 becomes %2520, which the server reads as the literal characters %20 rather than a space. The fix is to paste the plain value and let the builder encode it once. If a value arrives already encoded, decode it first with the URL encoder decoder, then build the URL from the plain value.
How to use this URL builder
Pick the protocol, type the host, type the path, and list the query parameters one per line as key=value — the defaults build https://example.com/search?q=hello%20world&page=2, with 2 parameters. The built URL updates live in the box below.
To copy the URL, use the Copy button next to the output box. To check a URL you received, paste it into the URL parser instead — this tool builds, it does not parse.
Everything runs in your browser. No sign-up, no account, no data sent anywhere. It works offline once the page has loaded.
Pick the protocol, type the host, add the path, then add the parameters one at a time with their keys and values. The finished URL appears underneath and updates as you type, so a mistake is visible at once — a missing slash, a doubled question mark, or a value that was not encoded. When the URL looks right, copy it and paste it where the link belongs. To check it, open it in a browser tab; if the page loads with the parameters applied, the URL is correct.