Skip to content
cosmodev ~/tools/url-inspector

Trình phân tích URL

Diagnostics

Phân rã bất kỳ URL nào thành các thành phần - giao thức, host, cổng, đường dẫn, tham số truy vấn, hash và thông tin đăng nhập. Phát hiện cổng mặc định và mức bảo mật ngay cái nhìn đầu, với công tắc giải mã cho giá trị truy vấn. Chạy hoàn toàn trong trình duyệt.

Báo cáo
Dán URL để xem các thành phần của nó.

(Tài liệu bằng tiếng Anh)

What it does

The URL Inspector decomposes any URL into every WHATWG-defined component: scheme/protocol, origin, host, hostname, port, pathname, search string, hashhashA one-way function that maps data of any size to a fixed-length digest. Same input, same digest; any change, different digest; not reversible., and any embedded credentials. It surfaces the signals the browser’s URL parser hides - whether the port is the scheme’s default (e.g. https → 443), whether the connection is secure, and whether the URL is just a site root. Query parameters are listed individually with an Encoded / Decoded toggle that percent-decodes values (treating + as a space). Everything runs 100% client-side.

How to use it

  1. Paste a URL into the URL box (or hit Sample for a demo with credentials, port, and query).
  2. Read the structured breakdown - each row has a copy button.
  3. Toggle Encoded / Decoded to switch how query-parameter values are shown.
  4. Watch the badges for security, default/custom port, and any warnings (credentials, root-only URL).
  5. Copy share link to send the exact URL + toggle state to a teammate.

Examples

Break down a URL with a query string

Input: https://api.example.com/v1/search?q=hello%20world&lang=en
Result: protocol https:, hostname api.example.com, pathname /v1/search, two params (q, lang) - decoded q = hello world.

Spot credentials and a default port

Input: https://user:pass@example.com:443/
Warnings: username credential, password credential, port 443 is the default for https.

Catch an invalid URL

Input: example.com/path → Invalid URL - include the scheme (e.g. https://).

Good to know

  • Shareable: the URL and decode toggle are encoded in the link (?u=…&d=…).
  • Private: parsing happens locally - safe for URLs that may contain tokens or credentials.
  • Related tools: Email Validator, HTTP Status Codes, Base64Base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt. Encode / Decode.
Mã nguồn14 ngôn ngữ

100% phía client · dữ liệu của bạn không bao giờ rời khỏi trình duyệt. Thấy hữu ích? Chia sẻ với đồng nghiệp của bạn.