URL Validator
Check URL syntax and inspect all components instantly
Input URL
Validation Result
Paste a URL in the editor to validate it
What Does URL Validation Check?
This tool uses the browser's built-in URL() constructor to parse and validate URLs according to the WHATWG URL Standard. A URL is considered valid if it can be successfully parsed — meaning it has a recognisable scheme (e.g. https:) and a valid host. The tool also breaks down the URL into its components: protocol, hostname, port, path, query string, and fragment.
URL Components Explained
Protocol / Scheme
The part before :// — typically https or http. Other schemes include ftp, mailto, and file.
Hostname & Port
The domain name or IP address. An optional port number follows after a colon, e.g. example.com:8080. Standard ports (80 for HTTP, 443 for HTTPS) are omitted.
Path, Query String & Fragment
The path (/v2/search) identifies a resource. The query string (?q=hello) passes parameters. The fragment (#results) navigates to a page section — it is not sent to the server.
Frequently Asked Questions
Does valid syntax mean the URL actually works?
No. This tool validates the URL's format only — it does not make a network request to check whether the URL is reachable or returns a 200 OK response.
Why is my URL marked invalid?
The most common reasons are a missing scheme (e.g. typing <code>example.com</code> instead of <code>https://example.com</code>), an invalid hostname, or unsupported characters that should be percent-encoded. Use the URL Encoder to fix encoding issues.
Is my data private?
Yes. Validation runs entirely in your browser using built-in JavaScript APIs. No data is sent to any server.