Home › Developer Tools › URL Parser

URL Parser

Paste a link to see every part of it: protocol, credentials, host, port, path, query string, fragment and origin. Edit, add or remove query parameters in a table and the URL is rebuilt live, ready to copy.

Last updated:

Relative URL? Resolve it against a base URL

Paths like ../img/a.png, /about, ?page=2 or //cdn.example.com/x.js are resolved the way a browser would.

Try:
Advertisement

How to use the URL Parser

  1. Paste a URL into the box and press Parse URL (it also parses as you type). If you leave out https://, it is added for you.
  2. Read the breakdown: each part has its own card with a Copy button and a decoded version when it contains %-escapes.
  3. Edit the query parameters in the table: change a key or value, press + Add parameter, or click × to remove one.
  4. Copy the rebuilt URL from the green box. Tick “Encode spaces as +” if your server expects form-style encoding.
  5. For relative links such as ../img/logo.png, open “Resolve it against a base URL” and enter the page address they belong to.

Anatomy of a URL

Here is how this example URL is split up:

https://ann:[email protected]:8443/en/mugs/blue?color=blue&size=L#reviews

PartValueJavaScript property
Protocol (scheme)https:url.protocol
Username / passwordann / secreturl.username, url.password
Hostnameshop.example.comurl.hostname
Port8443 (empty when it is the default 443)url.port
Hostshop.example.com:8443url.host
Originhttps://shop.example.com:8443url.origin
Path/en/mugs/blueurl.pathname
Query string?color=blue&size=Lurl.search
Fragment (hash)#reviewsurl.hash

The fragment is never sent to the server; the browser uses it to scroll to an element or a single-page app uses it for routing.

Common percent-encodings in URLs

CharacterEncodedCharacterEncoded
space%20 or + (query only)&%26
=%3D?%3F
#%23+%2B
%%25/%2F
é%C3%A9€%E2%82%AC

Inside a query value you must encode &, =, #, + and %, otherwise they change the meaning of the URL. The rebuilt URL in this tool does that automatically while leaving harmless characters such as /, : and , readable.

Resolving relative URLs: examples

With the base URL https://example.com/blog/2024/post.html:

Relative URLResolves to
image.pnghttps://example.com/blog/2024/image.png
../images/logo.pnghttps://example.com/blog/images/logo.png
/abouthttps://example.com/about
?page=2https://example.com/blog/2024/post.html?page=2
#commentshttps://example.com/blog/2024/post.html#comments
//cdn.example.net/app.jshttps://cdn.example.net/app.js

Frequently asked questions

What are the parts of a URL?

A URL is made of a protocol (https:), optional credentials (user:pass@), a hostname (shop.example.com), an optional port (:8443), a path (/path/page), a query string (?x=1) and a fragment or hash (#top). The host is the hostname plus the port, and the origin is the protocol plus the host.

What is a query string?

The query string is the part after the ? and before any #. It holds key=value pairs separated by &, for example ?q=shoes&page=2. Servers and analytics tools read these parameters; the order usually does not matter but repeated keys can carry several values.

Why are values shown decoded?

Special characters in URLs are percent-encoded, so a space becomes %20 (or + in query strings) and é becomes %C3%A9. The table shows the readable value; when the URL is rebuilt, values are encoded again correctly.

Should spaces be encoded as + or %20?

Both are common in query strings. %20 works everywhere; + is the HTML form convention understood by most servers. The parser always reads + in a query as a space and lets you choose which one to write when rebuilding.

How do I remove tracking parameters from a link?

Paste the link and press “Remove utm_* tracking”. It removes utm_source, utm_medium, utm_campaign and similar keys plus gclid, fbclid, msclkid and a few other click IDs, then gives you the clean URL to copy.

How are relative URLs resolved?

Exactly like a browser resolves a link on a page: ../ goes up one folder, / starts at the site root, ?x=1 replaces only the query and //host keeps only the protocol of the base. Enter the base URL in the optional field to see the absolute result.

Is the URL sent anywhere?

No. Parsing uses your browser's built-in URL API, so nothing leaves your device and private links stay private.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.UTM Campaign URL BuilderAdd UTM tracking parameters to links and make a QR code.Deep Link GeneratorCreate links that open directly in apps.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.Apache Virtual Host GeneratorCreate an Apache VirtualHost config with SSL, redirects, reverse proxy or PHP-FPM in seconds.API Request TesterSend GET, POST, PUT and DELETE requests with headers and a body, then inspect the response.Bulk URL OpenerOpen a list of URLs in new tabs at once or in batches, with cleanup, dedupe and delay.Canonical Tag GeneratorNormalize URLs and create rel=canonical tags and HTTP headers, for one page or a whole list.Email ValidatorCheck email lists and spot disposable addresses.Website Down CheckerCheck if a website is down for everyone.User Agent ParserSee your user agent and parse any UA string into browser, OS, engine and device.DNS LookupLook up A, AAAA, MX, TXT, NS, CNAME, SOA and CAA records with TTLs over secure DNS.WHOIS LookupLook up who registered a domain or IP: registrar, creation and expiry dates, name servers, status.Mailto Link GeneratorBuild encoded mailto: links with cc, bcc, subject and body, plus HTML code and a QR code.WhatsApp Link GeneratorCreate wa.me click-to-chat links with a pre-filled message, button HTML and a QR code.Basic Auth Header GeneratorCreate an Authorization: Basic header from a username and password, or decode one.Common Ports ListSearchable TCP/UDP port number list with service, protocol and description, filterable by range.DMARC CheckerLook up a domain's DMARC record, explain every tag, grade the policy and get fix suggestions.DMARC Record GeneratorCreate a DMARC TXT record with policy, reporting and alignment options, every tag explained.Email Header AnalyzerPaste raw email headers to trace every server hop, see delays and check SPF, DKIM and DMARC.IP Geolocation LookupFind the country, city, ISP, ASN and time zone of any IP address or domain, with a map.Reverse DNS LookupFind the PTR hostname of any IPv4 or IPv6 address, one at a time or hundreds in bulk.SPF Record CheckerLook up a domain's SPF record, count nested DNS lookups, find errors and test a sender IP.SPF Record GeneratorBuild a valid SPF TXT record from mail providers, IPs and includes, with a lookup-count check.CIDR to IP RangeConvert IPv4 or IPv6 CIDR blocks to first/last IP, mask and host count, and export IP lists.DNS Propagation CheckerCompare DNS answers and TTLs from Cloudflare, Google, Quad9, AdGuard and NextDNS side by side.Domain Availability CheckerCheck if domain names are available across .com, .io, .ai and more, with registrar and expiry.MAC Address LookupFind the vendor of a MAC address or OUI, check multicast and random bits, look up many at once.MX LookupFind a domain's mail servers: MX priority, host, IP addresses and the email provider.Uptime SLA CalculatorTurn 99.9% uptime into allowed downtime per day, month and year, or downtime into uptime %.Website Speed TestTest page speed with Lighthouse: performance score, Core Web Vitals and fixes, mobile or desktop.ASN LookupLook up an AS number or IP: network owner, country, registry, abuse contact and announced prefixes.Bandwidth CalculatorEstimate monthly website bandwidth (GB) and the Mbps you need from page views and page size.CORS TesterSend GET, POST or OPTIONS from your browser to any API and see whether CORS allows it and why not.DKIM Record CheckerLook up a domain's DKIM key by selector (or auto-detect), check key type, bit length and tags.DKIM Record GeneratorCreate a DKIM RSA key pair in your browser with the TXT record, selector host and private key PEM.DMARC Report AnalyzerRead DMARC aggregate XML reports (.xml, .gz, .zip): sources, SPF/DKIM alignment and pass rates.Domain Age CheckerSee how old a domain is, when it was registered and when it expires. Bulk check up to 50.Email ObfuscatorHide an email address from spam bots with HTML entities, a JavaScript mailto link or reversed CSS text.Email PermutatorGenerate every common business email format from a first name, last name and company domain.IP Blacklist CheckerCheck an IPv4 address against 21 public spam blocklists (DNSBLs) and see listed or clean.IP Range to CIDRTurn a start and end IP into the shortest list of CIDR blocks, for IPv4 and IPv6.IPv6 Subnet CalculatorIPv6 prefix to network, range, address count and /64s, and split it into child subnets.Link in Bio Page GeneratorCreate a link-in-bio page with avatar, bio, links and theme, then download it as one HTML file.Social Share Link GeneratorMake share links and buttons for Facebook, X, LinkedIn, Reddit, Pinterest, WhatsApp and email.Subnet Mask Cheat SheetInteractive /0 to /32 table of subnet masks, wildcards and host counts with details per prefix.TXT Record LookupLook up a domain’s DNS TXT records and see which are SPF, DMARC, DKIM or verification tokens.VLSM CalculatorSplit a network into variable-length subnets sized to the hosts each one needs.YouTube Timestamp Link GeneratorMake YouTube links that start at a set time, embed start/end codes and lists of timestamps.Email Deliverability CheckerGrade a domain's MX, SPF, DMARC, DKIM, BIMI and MTA-STS records in one report with fixes.
See all 52 Network, DNS & Email Tools →