Utvikling · verktøy

URL-parser

Lim inn en URL for å undersøke alle nyttige deler og spørringsparametere.

Kjøres i nettleseren. Ingen opplasting.

The URL is analyzed locally.

URL components
Protocol
—
Host
—
Path
—
Query
—
Hash
—
Query parameters
—

Om verktøyet

URL-parser sem complicação.

En tydelig måte å feilsøke lenker, UTM-tagger, viderekoblinger og spørringsstrenger uten å sende URL-en til en server.

Veiledning

Slik bruker du URL-parser

The URL Parser splits a web address into its parts. You paste a full URL, press the button, and see the protocol, host, path, query string, hash and a list of each query parameter with its decoded value. It helps when you debug links and tracking tags. It does not open the link, check that the page exists, or measure traffic or backlinks.

Slik gjør du

  1. Paste a complete URL into the box, starting with a protocol such as https://.
  2. Press Parse URL. The tool trims spaces around the text and reads it with the browser's own URL parser.
  3. Read the five parts: protocol, host, path, query and hash. Empty ones show (none). The path shows / when there is none.
  4. Check the Query parameters box, which lists each name and value as JSON, with percent codes and plus signs already decoded. Press Clear to start over.

Eksempler

A link with tracking tags

Du skriver inn
URL
https://example.com:8080/a/b?utm_source=news&utm_campaign=spring%20sale&x=1#top
Du får
Protokoll
https:
Vert
example.com:8080
Sti
/a/b
Spørring
?utm_source=news&utm_campaign=spring%20sale&x=1
Fragment
#top
Parametere
Navn: utm_source; Verdi: news; Navn: utm_campaign; Verdi: spring sale; Navn: x; Verdi: 1

The port is part of the host line. The query keeps its raw text, while the parameter list shows %20 as a space.

Kjørt med verktøyets egen kode.

A bare domain

Du skriver inn
URL
https://example.com
Du får
Protokoll
https:
Vert
example.com
Sti
/
Spørring
(none)
Fragment
(none)
Parametere
No query parameters.

With no path, the browser's parser adds a single slash. Query and hash are empty, so the tool shows (none).

Kjørt med verktøyets egen kode.

Repeated names and a default port

Du skriver inn
URL
HTTPS://User:pw@Example.COM:443/x?a=1&a=2
Du får
Protokoll
https:
Vert
example.com
Sti
/x
Spørring
?a=1&a=2
Parametere
Navn: a; Verdi: 1; Navn: a; Verdi: 2

The protocol and host are lowercased, the default port 443 is dropped from the host, and both values of the repeated name are listed. The user and password part is not shown on its own.

Kjørt med verktøyets egen kode.

Plus signs and encoded characters

Du skriver inn
URL
https://example.com/search?q=a+b%26c
Du får
Parametere
Navn: q; Verdi: a b&c

In a query, a plus sign becomes a space and %26 becomes an ampersand, so the value reads a b&c.

Kjørt med verktøyets egen kode.

A link without a protocol

Du skriver inn
URL
example.com/page
Du får
Melding
Enter a complete URL, including https://.

The parser needs a protocol to know it is a URL. Without one, it fails and the tool clears all parts.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Read the utm tags on a campaign link before you publish it.
  • Find out which host and path a long redirect or share link points to.
  • Check that a query value is decoded the way you expect.
  • Teach how the parts of a web address fit together.

Begrensninger

  • The address must be complete, with a protocol. Text such as example.com/page is rejected.
  • The tool does not show the username, password or port as separate fields. The port is included in the host line only when it is not the default for the protocol.
  • It only reads the text. It does not visit the link, follow redirects or tell you if the page is safe.
  • Other protocols are accepted, but some, such as mailto:, give an empty host and put the address in the path.
  • Repeated parameter names are all listed, and no value is combined or removed.

Tips

  • Paste the full address from the browser bar, including https://, to avoid the error message.
  • Compare the raw Query line with the parameter list to see what was encoded.
  • Use Clear between links so an old result is not left on screen.

Kilder

Vanlige spørsmål

Sobre URL-parser.

What parts of a URL does this tool show?

It shows the protocol, the host (with the port when it is not the default), the path, the query string and the hash, followed by a list of query parameters. It reads them with the browser's standard URL parser.

Why does the tool say to include https://?

Without a protocol, text like example.com/page could be a file name or a search term, so the standard parser refuses it. Add https:// or http:// in front of the address and parse it again.

Does it send my URL anywhere?

No. The page says the URL is analyzed locally in your browser. The tool does not open the link or send it to a server, though you should still avoid sharing links that contain private tokens.

Can I use it to check utm tags?

Yes. Paste the full link and look in the parameter list for names such as utm_source and utm_campaign. The tool decodes the values for you. It does not measure traffic or check whether the tags are right for your analytics.

What is the hash of a URL?

It is the part after the # sign, often used to jump to a spot on a page. It is not sent to the server by the browser when a page is requested, which is why it is shown on its own.

Why does the path show a single slash?

A web address with no path, like https://example.com, is treated by the standard as having the path /. The tool shows what the parser returns, not what you typed.

Is this the same as the URL encoder tool?

No. The encoder changes text into percent codes or back. The parser splits a whole address into parts. They work well together when you want to read an encoded query.

Hvordan bruker du URL-parser?

Lim inn en URL for å undersøke alle nyttige deler og spørringsparametere.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.