URL Parser Online

Analyze and understand the components of URLs

Enter URL

Parse Result

Please enter a URL to parse

History

No history records

URL Structure Guide

Learn about URL components and understand the anatomy of Uniform Resource Locators

Complete URL Structure

The complete syntax structure of URLs and meaning of each component

scheme://[userinfo@]host[:port][/path][?query][#fragment]
Component Description Details
Scheme (Protocol)

Defines the protocol used to access the resource, such as http, https, ftp, mailto

Common: http(80), https(443), ftp(21), ws(80), wss(443)

Authority Component

Contains user info, hostname, and port number for resource identification

Format: [userinfo@]host[:port], e.g., user:pass@example.com:8080

Host (Domain/IP)

Identifies the server by domain name or IP address, the most critical URL part

Can be domain(example.com), IPv4(192.168.1.1) or IPv6([::1])

Port Number

Specifies the service port on the server, uses protocol default when omitted

Range: 1-65535, common defaults: 80(HTTP), 443(HTTPS), 21(FTP)

Path Component

Specifies the exact location of resource on server, similar to filesystem path

Hierarchical structure with / separators: /docs/guide/installation.html

Query Parameters

Key-value pairs starting with ? to pass additional information to server

Format: ?key1=value1&key2=value2, special characters need URL encoding

Fragment Identifier

Starting with # for in-page navigation, typically points to specific page sections

Client-side only, not sent to server, e.g., #section1

User Information

Contains username and password for authentication, rarely used in modern apps

Format: username:password@, not recommended due to security concerns

URL Encoding Rules

Special characters must be percent-encoded to ensure proper URL transmission

Space→%20, Chinese→UTF-8 encoding, reserved chars like ?→%3F

Relative URLs

Path references based on current page location, simplifying URL writing

./same level, ../parent, /root path, //protocol relative, ?query only

URL Standards

Follows RFC 3986 and other international standards for URL uniformity and compatibility

Max length typically limited to 2048 chars, supports internationalized domain names