Category · 1 tool · 1 guide
URL tools
URLs look like simple strings, but they have a precise structure: scheme, credentials, host, port, path, query string and fragment, each with its own encoding rules. Developers work with them all day, building API calls, debugging OAuth redirects, reading tracking links, configuring routes and checking what a browser actually requested.
Problems hide in the details. A redirect_uri that does not match by one trailing slash, a query value containing an unencoded ampersand that splits it in two, a plus sign that turns into a space, or a non-ASCII path that was encoded twice can each break a flow while the URL still looks correct at a glance.
The tools in this category parse URLs with the same WHATWG URL parser browsers use, decode every part, and list each query parameter and path segment separately so nothing hides in a long string. URLs often carry tokens and personal data, so parsing happens locally in your browser.
Tools in this category
Common tasks
- Debug an OAuth redirect mismatchParse the authorization URL and compare redirect_uri, scope and state values character by character.
- Understand percent-encoding rulesLearn which characters must be encoded in a path versus a query string and why double encoding happens.
- Build an API call with query parametersAdd parameters in a form and let the tool encode them, then send the request.
- Spot tracking parameters in a linkList every parameter to find utm_ and click ID values that should not end up in a canonical URL.
- Encode binary data for a URLUse URL-safe Base64 when you need to pass bytes in a query parameter or path segment.
Key concepts
- Origin
- The combination of scheme, host and port, such as https://api.example.com:443. Browsers use the origin for security decisions like CORS, cookies and storage isolation.
- Query string
- The part after ? made of key=value pairs joined with &. Keys can repeat, order can matter to some servers, and both keys and values must be percent-encoded.
- Fragment
- The part after #. Browsers never send it to the server; it is used for in-page anchors and by single-page apps and OAuth implicit flows to pass data to scripts.
- Percent-encoding
- Reserved or non-ASCII characters are replaced by % and two hex digits per UTF-8 byte. In form-encoded query strings a space may also be written as +.
- Relative URL
- A URL without a scheme or host, like ../img/logo.png or /api/users, resolved against a base URL. A leading slash means from the root of the host.
Best practices
- Build URLs with a URL or URLSearchParams API rather than string concatenation, so encoding is always correct.
- Keep secrets and personal data out of query strings; they are logged by servers, proxies and analytics.
- Pick one trailing-slash convention for your site and redirect the other form to it.
- Register exact redirect URIs with OAuth providers and compare them exactly, including scheme, port and path.
- Decode a URL only once at the point you use it; decoding twice can turn %2525 into a different character.