URL Parser
Paste the URL to instantly analyze the complete composition of Protocol, Host, Port, Path, Query String, Hash, etc.
Supports Query Parameters table parsing, domain analysis, URL structure diagram, and health check.
URL Frequently Asked Questions FAQ
Q1: What are the differences between URL, URI and URN?
URI(Uniform Resource Identifier) It is a unified resource identification code, which is the top-level concept and is used to uniquely identify a resource.
URL(Uniform Resource Locator) It is a Uniform Resource Locator that not only identifies the resource, but also tells you how to get it (via network location).
URN(Uniform Resource Name) Is a unified resource name that only identifies the resource but does not provide location information.
Simply put,All URLs are URIs, but not all URIs are URLs. For example https://example.com/page is both a URI and a URL, and urn:isbn:0-486-27557-4 Is a URI but not a URL.
Q2: What is the difference between Query String and Fragment?
Query String to ? Beginning with & Delimited key-value pairs (such as ?name=gary&id=123). Query String willSend to server, commonly used for search parameters, filter conditions, paging information, etc.
Fragment (fragment identifier) to # at the beginning,Will not be sent to the server, only used on the browser side. Commonly used for page internal anchors (jumping to specific blocks), SPA routing status, etc.
Example:
https://example.com/page?query=hello#section-2
• ?query=hello → Server receives
• #section-2 → Browser use only
Q3: What is a TLD (top-level domain)? What is a subdomain?
TLD (Top-Level Domain, top-level domain) is the last part of the domain, such as .com、.org、.tw、.co.uk Wait. Managed by ICANN.
Second Level Domain is the previous part of the TLD, usually the main name of the website. For example example in example.com in.
Subdomain It is the part before the second-level domain and is used to divide different service areas. For example blog in blog.example.com in,api in api.example.com in.
for blog.example.co.uk:
• Subdomain: blog
• Domain: example
• TLD: co.uk
Q4: What is the Port in the URL? What is the default port number?
Port is a numerical label used to distinguish different services in network communications, ranging from 0 to 65535. When Port is not specified in the URL, the browser will useDefault port number:
• HTTP:80
• HTTPS:443
• FTP:21
• SSH:22
For example https://example.com:8080/path in 8080 It is a non-standard port number, often used for test servers in the development stage. Non-standard port numbers need to be specified explicitly in the URL.
Q5: What do the Username and Password in the URL do? Is it safe?
The format of Username and Password in the URL is https://user:pass@host/, a URL encoding method belonging to HTTP Basic Authentication. In the early days, it was often used by browsers to directly transmit authentication information.
⚠️ Security risks:
• Passwords are displayed in plain text in the URL and can be easily eavesdropped or leaked.
• URLs may be recorded in browser history, server logs, Referer headers, etc.
• Modern browsers have phased out password authentication in URLs.
Suggestions: Do not include authentication information in the URL, use the Authorization header or cookies for authentication instead.
Q6: What is URL Encoding (Percent-Encoding)?
URL Encoding (also known as Percent-Encoding) is to convert special characters in the URL to % A mechanism followed by two digits of hexadecimal code. This is because some characters in the URL have special meanings (such as ? Start Query String,# Start Fragment), if you need to use literal values in these parts, you must encode them.
Common encodings:
• 空格 → %20
• # → %23
• ? → %3F
• & → %26
The browser will automatically encode the URL, which is why when you paste a URL containing Chinese characters in the address bar, you will see %E4%B8%AD%E6%96%87 Such form.
Q7: Will this tool upload my URL information to the server?
Not at all. This tool isPure front-end application, all URL parsing, domain analysis, and health checks are done locally in your browser, and no data is sent to the server. Works even when offline, so feel free to use any sensitive URLs.
The Complete Guide to URL Structure: In-depth Analysis from URL to Query String
The complete structure of the URL
A complete URL follows the following format:
- Scheme: Tell the browser which protocol to use for connection, such as https, http, ftp, mailto.
- User:Password@(authentication): Optional HTTP Basic Authentication information.
- Host: The domain name or IP address of the server.
- Port: Optional, specify the port number of the server.
- Path: The path of the resource on the server, which can include the file name and file extension.
- Query String: Starts with ? and contains key-value pair parameters.
- Fragment: Starts with # and points to a specific location within the page.
Application of URL parsing in web development
Accurately parsing URLs has a wide range of application scenarios in web development:
- routing design: Front-end SPA frameworks (such as React Router, Vue Router) need to parse URLs to decide which element to render.
- API development: The backend API needs to extract path parameters and Query String from the URL to handle the request.
- SEO optimization: URL structure directly affects search engine rankings, and clear URL path and parameter design help improve SEO.
- security analysis: Detect whether the URL contains malicious parameters and phishing website disguise techniques (such as IDN Homograph Attack).
- Data retrieval: Extract useful information from third-party websites, such as e-commerce product IDs, social post IDs, etc.
- Redirects and proxies: URL parsing is the basis for implementing URL rewriting, reverse proxies, and CDN routing.
URL security: How to identify malicious URLs?
URL resolution is critical to network security. Here are some common malicious URL techniques:
- IDN Homograph Attack: Use visually similar characters (such as using the Cyrillic "g" in "google.com" to pass it off as "google.com").
- URL masquerading: Add to URL
@symbol, causing the preceding text to be treated as the Username and actually linked to the website following the @. - double-layer encoding: Percent-Encode the URL twice to bypass the security filter.
- URL too long: Hide malicious parameters in an extremely long Query String, beyond the scanning range of security checks.
of this tool URL Health Check Features can help you quickly identify some of the above risks.