Check whether a string looks like a valid URL using a pragmatic regular-expression pattern for HTTP/HTTPS hosts, domain names, IPv4 addresses, optional ports, paths, queries, and fragments.
When to use it
- Quick sanity check before storing user-submitted links
- Debug configuration values in CI logs
- Teach URL structure without issuing network requests
Limitations
Pattern validation is not the same as reachability—no DNS or HTTP request is made. Internationalized domain names (IDN) in Unicode form may not match. Does not validate certificate trust or malicious destinations.
Example
For example, enter the default sample values on the form and compare the output with a known reference; adjust one input at a time to see how the result changes.
Notes
This guide summarizes the behavior of the text/validate url tool on Tool Plaza. Processing runs locally in your browser unless the tool explicitly calls a server action.