URL Parser

Paste a link and see every part of it: protocol, host name, port, path, each query parameter and the fragment, with %-encoding decoded so you can read it. Duplicate parameters are kept in order. It parses the URL the same way your browser does, so what you see is what a browser or server will get.

Tool
Protocol
https:
Host name
shop.example.in
Port
(empty)default 443
Origin
https://shop.example.in
Path
/products/silk-saree
Query
?colour=red&size=free%20size&utm_source=whatsapp&utm_medium=social&fbclid=IwAR2x
Fragment
#reviews

Path segments (decoded)

1products
2silk-saree

Query parameters (5, decoded)

colourred
sizefree size
utm_sourcewhatsapp
utm_mediumsocial
fbclidIwAR2x

Everything runs in your browser. What you type never leaves this device.

Features

  • Protocol, host, port, origin, path, query and fragment

  • Default ports shown when none is written

  • Path segments and parameters decoded

  • Duplicate parameters kept in order

  • Copy any part in one click

  • Adds https:// when the scheme is missing

Why parse a URL

Debugging links

Find out why a link opens the wrong page: a stray # before the query, a double-encoded space or a missing parameter.

Checking ad and campaign links

See every UTM tag and click ID on a link from an ad or email before you share or edit it.

Teaching and documentation

Show the anatomy of a URL with real values.

The parts of a URL

From left to right

  • Protocol: https: (port 443 unless written) or http: (port 80).
  • Host: the domain name or IP address, optionally with :port.
  • Path: /products/silk-saree, split into segments.
  • Query: everything after ?, as name=value pairs joined by &.
  • Fragment: after #. It stays in the browser and is never sent to the server.

More URL tools

Strip tracking with the URL cleaner, edit parameters with the query string builder. Related: URL encoder and decoder, UTM link builder.

URL Parser - FAQ