PocketPlay
中文

URL Parser & Builder

Split any URL into protocol, host, port, path, query parameters and hash, edit them and rebuild the URL or a curl command.

🔒 Runs in your browser — files never leave your deviceFree · No sign-up

Components

Host details

Query parameters

OnNameValue

This URL has no query parameters yet.

Rebuilt URL

curl command (GET)


  

Encode / decode

How to use the URL parser

  1. Paste a URL — it is split into protocol, credentials, host, port, path, query parameters and hash straight away.
  2. Edit any field or query parameter, switch rows off to drop them, and the rebuilt URL below updates live.
  3. Copy the finished URL, or copy the generated curl command to reproduce the same GET request in a terminal.

FAQ

What is punycode and why is my host different?

Domain names with non-ASCII characters are transmitted in an ASCII form that starts with xn--. The browser normalises them automatically, so the tool shows both the ASCII form that actually goes on the wire and the readable Unicode form.

When should I use encodeURIComponent instead of encodeURI?

Use encodeURIComponent for a single query value — it escapes &, =, ? and / so they cannot break the URL structure. Use encodeURI when you have a whole URL and only want illegal characters such as spaces escaped.

Does the URL leave my browser?

No request is made. Parsing uses the browser URL API locally, so tokens or signed links you paste are never sent anywhere.