Sổ Tay AI
🔗

URL Parser & Query String Builder

Phân tách URL thành protocol/host/path/query/hash. Chỉnh sửa từng query param và rebuild URL chuẩn — dùng URL & URLSearchParams API.

Tool dùng URL & URLSearchParams chuẩn — phân tách protocol, host, path, query, hash; chỉnh sửa từng param và rebuild URL chuẩn.

Khi nào cần parse URL?

Cấu trúc URL chuẩn

https://user:pass@example.com:8080/path/to/page?key=value&q=hello#section
└─┬─┘   └────┬────┘ └────┬────┘ └─┬┘ └──────┬──────┘ └──────┬───────┘ └───┬──┘
protocol     auth        host    port      path           query         hash

Tip về query string encoding

Liên quan

Công cụ liên quan

Xem tất cả công cụ →