Works on this device
URL List Organizer
Paste a list of links, one on each line. The tool removes duplicate links by rules you can see and choose, sorts the list by link, site or path, groups it by site, and gives it back as plain text, CSV or an HTML list. Nothing is opened or sent.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Organize.
Your result
How it was worked out
How to use the URL list organizer
- Paste the links into the box, one on each line, or open a text file.
- Choose how to remove duplicates, how to sort, and whether to group the links by site. Under More options you choose which differences do not count, such as a
/at the end. - Choose Organize. Copy or download the list as text, CSV or an HTML list. The tables show the duplicates that were removed and the lines that are not links.
When two links are the same
With links that are the same by the rules below, each link is first written in its standard form by the browser's own URL class (the WHATWG URL Standard):
- The scheme and the host name are put in small letters:
HTTPS://WWW.Example.COMishttps://www.example.com. - A default port is left out:
:443for https and:80for http. .and..steps of the path are worked out, and an empty path is written as/.- Characters that must be percent-encoded are encoded. Other encoding is not changed.
Then, as you choose: the part after # is ignored (on by default), www. at the start of the host is ignored, a / at the end of the path is ignored, and http and https count as the same. Capital letters in the path and the query, and the order of the query parameters, always count, because a site may show different pages for them.
The first copy of a link is kept. Times in the list says how many times it was in your list.
How the list is sorted and grouped
- The whole link: the standard forms are compared character by character, A to Z.
- The site: by the host name read from the right, so
www.example.comsorts ascom.example.wwwand the parts of one site stay together. Then by the whole link. - The path: by the path and query, then by the site.
- Links that sort the same keep the order of your list. Reverse the order turns the list round.
- Group the links by site puts each host under its own heading in the text and as an
<h2>heading in the HTML list.
Worked example
The example list has 8 lines. HTTPS://WWW.EXAMPLE.COM/blog/ is the same as https://www.example.com/blog/ in its standard form, and https://docs.example.org/guide/start#install is the same as the link without #install, so 2 duplicates are removed. example.org/no-scheme has no https://, so it is listed as not read. 5 links on 4 sites are left.
With Treat www.example.com and example.com as the same site and Ignore a / at the end of the path, https://example.com/blog is a duplicate too, and 4 links on 3 sites are left.
Limits you should know
- Only links that start with
https://orhttp://are read. Other lines are listed apart and left out of the list. - The tool does not open the links, so it cannot tell whether two different links lead to the same page, or whether a link still works.
- A host is not reduced to its main site name (
blog.example.co.ukis its own site), because that needs a list of public domain endings. - At most 20,000 lines in one list.
- To remove tracking parameters such as utm_source first, use the URL Tracking Parameter Remover. To sort a bookmarks file, use the Browser Bookmark Sorter.