Illustration of a URL splitting into protocol, host, port, path, and query parameter pieces

URL Parser

Paste a full URL (including http:// or https://) to break it into its parts. Runs entirely in your browser using the native URL class.


ℹ️ How this works
  • Uses the browser's built-in URL class — the same parser your browser uses internally, so results match how the URL would actually be interpreted.
  • A repeated query key (like a=1&a=3 above) shows as separate rows in order — nothing is deduplicated or overwritten.
  • Runs entirely client-side — nothing you paste here is ever sent anywhere. The JSON API below is a separate, opt-in endpoint for scripts.
💻 Show API usage example (cURL)
curl -sS "https://devops.majbase.com/url-parser/api" \
    --data-urlencode 'url=https://example.com:8080/path?a=1&b=2'

Returns {"href","protocol","username","password","hostname","port","host","pathname","search","hash","origin","query_params":[{"key","value"},...]}, or {"error": "..."} if the input isn't a valid absolute URL.