UtilitySansar
Lập trình viên

URL Parser

Paste any URL and instantly see its protocol, host, port, path segments, query parameters, and fragment — with values URL-decoded and ready to copy.

Tóm tắt công cụ

Công cụ này nhận đầu vào có cấu trúc và trả về đầu ra xác định ngay trong trình duyệt, không tải lên máy chủ.

Tên công cụ
URL Parser
Mục đích đầu vào
Cung cấp nội dung nguồn để biến đổi, xác thực hoặc phân tích.
Mục đích đầu ra
Nhận đầu ra chuẩn hóa thuận tiện để sao chép, tái sử dụng hoặc gỡ lỗi.
Đầu vào ví dụ
https://example.com:8443/blog/post-1?utm_source=email&ref=newsletter#share
Đầu ra ví dụ
protocol: https host: example.com:8443 path: /blog/post-1 query: utm_source=email, ref=newsletter hash: #share

URL components

Protocol
https
Origin
https://shop.example.com:8443
Hostname
shop.example.com
Port
8443
Path
/products/widget
Hash
#reviews

Path segments (2)

  1. 1products
  2. 2widget

Query parameters (3)

KeyValueActions
utm_sourceemail
utm_campaignspring sale
refnewsletter

JSON view

Giới thiệu công cụ

Paste any URL and instantly see its protocol, host, port, path segments, query parameters, and fragment — with values URL-decoded and ready to copy.

Tổng quan công cụ

Most URLs hide a lot of structure: subdomains, ports, encoded path segments, repeated query keys, and a fragment that may itself contain key/value pairs. This tool runs your input through the standard WHATWG URL parser, then expands every part into a labelled, copyable view. Query parameters are listed in the order they appear, with their values URL-decoded. Path segments are split on / and decoded too. A read-only JSON view makes it easy to drop the parsed result into a script or test fixture.

Trường hợp sử dụng

  • Debug redirects and tracking URLs by inspecting every UTM and query parameter.
  • Extract a deep link’s path segments to validate a route in your app.
  • Convert a stringy URL into a structured object for a test fixture.

Ví dụ đầu vào/đầu ra

Mục đích đầu vào
https://example.com:8443/blog/post-1?utm_source=email&ref=newsletter#share
Mục đích đầu ra
protocol: https
host: example.com:8443
path: /blog/post-1
query: utm_source=email, ref=newsletter
hash: #share

Câu hỏi thường gặp

What if my URL is missing the scheme?+
The parser requires a scheme. If you paste www.example.com without https://, it will report an error. Add the scheme and try again.
Are query values URL-decoded?+
Yes. Values are decoded so you see the human-readable form, but the original encoded value is also shown.
Does it support internationalized domains (IDN)?+
Yes. Unicode hostnames are accepted; if you need to round-trip them through punycode, use the IDN Punycode Converter.

Khám phá thêm công cụ

Khám phá các tiện ích liên quan trong danh mục Lập trình viên bên dưới.

Xem tất cả Lập trình viên

Công cụ liên quan

Tiện ích được tuyển chọn có thể hữu ích cho bạn