Binatomy
Analizzatore URL

Analizzatore di URL

Incolla un URL e scomponilo in protocollo, host, porta, percorso e parametri della query string. Tutto nel tuo browser.
FAQ

Domande Frequenti

Tutto quello che devi sapere sull'analisi degli URL

Da quali parti e composto un URL?

Un URL e formato da diverse parti: il protocollo (es. https:), l'host (dominio + eventuale porta), il percorso (path) che identifica la risorsa, la query string con i parametri (dopo il ?) e il frammento (dopo il #). Questo strumento le separa tutte automaticamente usando l'API URL nativa del browser.

Perche devo includere il protocollo?

L'API URL del browser richiede un URL assoluto e valido, quindi deve includere un protocollo come https:// o http://. Se incolli solo "esempio.com/pagina" senza protocollo, l'analisi fallira. Aggiungi https:// all'inizio per ottenere il risultato corretto.

I parametri della query vengono decodificati?

Si. I valori dei parametri della query string vengono automaticamente decodificati dal percent-encoding (es. %20 diventa uno spazio) grazie a URLSearchParams. Cosi vedi i valori reali e leggibili, senza dover decodificare manualmente le sequenze %XX.

What parts is a web address made of?

The protocol, the host with its optional port, the path that points at the resource, the query with the parameters after the question mark, and the fragment after the hash.

Why do I have to type the protocol as well?

Because the parsing uses the browser function, and that only accepts absolute addresses. Typing the domain name on its own gets you nowhere: adding https in front is enough.

Are the parameters decoded?

Yes, the values of the query are shown in clear, so the percent sequences become readable again and the code for a space turns back into an actual space.