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

1

Protocol / Scheme

The part before :// — typically https or http. Other schemes include ftp, mailto, and file. The full set of registered schemes is kept in the IANA URI Schemes registry.

2

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. Those two defaults come from section 4.2 of RFC 9110.

3

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. RFC 3986, section 3.5 explains why: the browser resolves the fragment itself once the page has arrived.

Validation Examples

Valid vs invalid URLs

Valid URLs:

https://example.com
https://api.example.com/v2/users?page=1
http://localhost:3000/path#section
ftp://files.example.com/data.csv

Invalid URLs (and why):

htp://example.com       → typo in protocol
example.com             → missing protocol
https://               → missing hostname
https://exam ple.com    → space in hostname

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 example.com instead of https://example.com), an invalid hostname, or unsupported characters that should be percent-encoded. Use the URL Encoder to fix encoding issues.

Is my data private?

Yes. The checking uses JavaScript APIs built into the browser, and nothing you paste is uploaded.

Related Tools