URL parser and validator

Split a URL into its parts: protocol, domain, port, path, parameters and #fragment. If a link is broken, see why.

  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up

By using this, you agree to our Terms and Privacy Policy.

Every part, including the easy-to-miss ones

Protocol, username and password, domain, port, path, parameters and # part. It also shows details that are easy to miss: whether there is an empty #, whether the port is written out or assumed, and whether the domain uses non-English letters.

Why a URL is invalid

Browsers just say Invalid URL, which does not tell you what is wrong. These three causes cover almost every case:

  • No protocol. example.com/x is missing https:// at the front. Tick the box to add it for you.
  • A space. Usually from a line break in whatever you copied. Spaces must be written as %20.
  • An odd character in the domain. Domains allow far fewer characters than the rest of a link. An underscore or accent that is fine in the path breaks a domain.

Passwords in a URL

https://user:pass@example.com is allowed, but a bad idea. The whole link ends up in server logs and browser history, and can be passed on to other sites. If this tool shows a password, treat that password as leaked and change it.