URL Parser

Parse a full URL or split a query string locally in your browser.

Free to use in your browser.

Maximum 256 KiB of UTF-8 input and 1,000 query segments. Parsing does not trim or rewrite the input. Your browser may normalize pasted line endings; use a byte-preserving editor if exact line endings matter.

Parsing runs locally and does not open your URL. Avoid pasting active passwords or access tokens. This website also uses analytics; see the privacy policy.

How to parse a URL or query string

Inspect an address and its query parameters without changing them. This read-only tool does not clean, edit, or rebuild links. Use fictitious examples rather than real credentials.

  1. Choose Full URL for an absolute address beginning with http:// or https://. Other schemes and relative addresses are unsupported.
  2. Paste the address and select Parse. Compare the original input with the components and query rows. Parse again after changing the input or mode.
  3. For a query alone, choose Query string and enter text such as a=1&b=2, optionally with a leading question mark. A hash is query text here, not an automatically detected fragment.
  4. Names and values are raw by default. Select Show decoded values for a single decoded interpretation, using the plus-sign convention expected by the receiving application.

For example, the following fictional address contains a non-default port, two values for the same name, an empty value, a flag, and a fragment. Its rows retain their input order rather than collapsing the two tags into one.

Full URL: https://shop.example.com:8443/products/shoes?tag=a%2Bb&tag=red+blue&empty=&flag#details

Hostname: shop.example.com

Port: 8443

Raw fragment: details

URL parts explained

  • Scheme or protocol: The opening http: or https: identifies the protocol. Only absolute HTTP and HTTPS addresses are supported.
  • Hostname and host: The hostname excludes the port; the host includes a non-default port when present. An IPv6 hostname keeps its brackets. The tool does not guess the registrable domain.
  • Port: A non-default port can identify a service at the host. A default port may disappear from the normalized result even if entered.
  • Path: The pathname identifies a location within the address. It may include percent escapes or be normalized by the browser; it is not automatically decoded.
  • Query: Text after the first question mark and before the first hash can carry names and values. A query can be absent or empty.
  • Fragment: Text after the first hash is a separate part, often identifying a location in a document. A question mark within it is not a query separator.

Original text, normalized parts, and decoded values

The original input shows the text currently in the input box, not proof of the original network bytes. Browsers may normalize line endings when text is pasted into a textarea. If exact line endings matter, use a byte-preserving editor instead of copying a raw query from this tool. In Full URL mode, the browser's WHATWG URL parser supplies parsed and normalized protocol, hostname, host, port, and path fields. For example, it can lowercase a hostname, normalize a path, or represent an internationalized domain name in punycode. The raw query and fragment are taken from the original text, including whether their separators are present, so absent and empty queries or fragments are distinguishable.

Consider https://example.com:443/a. The original still contains the explicit port, but the normalized port is empty because 443 is the HTTPS default. A decoded query field is a third view: it appears only on request and never replaces the raw field. Paths and fragments are not automatically decoded in this view.

Understand query rows and separators

The parser splits the original query at each ampersand and keeps segments in order. Each nonempty segment is split only at its first equals sign. Therefore, a=b=c has the name a and the value b=c; in =x, the name is empty. A destination may interpret this text differently.

Repeated names remain separate rows. An application might use the first value, the last, all values, or another rule; check its documentation. Consecutive or trailing ampersands produce marked empty segments: for a=1&&a=2&, there are two parameter rows and two empty segments. An empty query produces no rows.

A bare flag and flag= both have an empty value, but only the latter has an equals sign; this distinction remains visible. In Query string mode, the first leading question mark is a delimiter and the remaining characters are query text. A lone question mark represents an empty query. Use Full URL mode for a complete address.

Decoding, spaces, and plus signs

Percent escapes represent bytes that can be decoded as UTF-8 text. For example, %20 becomes a space and %2B becomes a literal plus. A raw plus has a different interpretation under different conventions. In the default form-style decoding choice, a raw + means a space; in the optional literal-plus choice, it stays a plus. Choose the rule used by the system that produced or receives the query.

When you enable decoded values, each name and value is decoded once, separately, while the raw columns remain available. For instance, %2520 becomes %20 on that single pass, not a space. A second pass could change the meaning of data or introduce characters that look like separators. Do not assume repeated decoding is necessary or safe.

An invalid escape such as %ZZ or a lone percent sign, and invalid UTF-8 such as %E9, cause a warning for the affected name or value. Its original text remains visible; other fields can still be decoded. Check for incomplete copying, malformed escapes, or a different source encoding rather than guessing missing bytes. A full URL can have a parseable structure while one of its query fields fails decoding.

Privacy, copying, and signed links

Parsing happens locally in your browser without sending input to a server for parsing. The tool does not automatically visit the destination or put input in the page address. Local processing is separate from website analytics and other network requests. See the privacy policy for information about site analytics.

Avoid live credentials and sensitive links. Although user information in the result area is masked by default, it may remain visible in the input, and queries or fragments can contain tokens and personal information. Masking does not cover every secret. Copy fields only when needed, and consider where clipboard content will go.

A signed URL may depend on exact characters, escaping, parameter order, or other details. Inspection does not change the original, but manually assembling an address from normalized or decoded fields can invalidate the signature. Preserve the original; the parser does not rebuild links or guarantee their validity or safety.

Common questions

What if my address has no protocol?

Full URL mode requires an explicit HTTP or HTTPS scheme. If you know the intended scheme, add it yourself and check the address; the tool does not silently choose one. Relative paths and other schemes are outside this mode's supported scope. Whitespace, control characters, or backslashes should be checked and corrected rather than silently guessed. The input limit is 256 KiB of UTF-8, with at most 1,000 query segments including empty segments. Over-limit input is rejected, not truncated.

Does successful parsing mean a link is safe or available?

No. A valid-looking structure does not establish that a site exists, that a link works, or that it is safe to open. The parser does not fetch the target, test its response, or verify a signature. Use appropriate caution before visiting or sharing any unfamiliar address.

How is parsing different from cleaning or decoding?

Parsing reveals structure; decoding interprets encoded text; cleaning removes recognized tracking parameters according to its own rules. Use the URL Cleaner for cleaning, the URL decoder for a separate decoding task, or the URL encoder to encode a value. Explore the tools directory for the available options.