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.

🤖 Use this API as a Claude Skill

Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:

⬇️ Download SKILL.md · View raw