Free online tools to generate, calculate, convert, format, transform, and de/en-code.
 

Domain/URL Sorter

Sort domains and URLs alphabetically by domain, subdomain, or path with validation.


Input Domains/URLs

Sort Options



About Domain/URL Sorting

The Domain/URL Sorter intelligently sorts web addresses by various criteria including domain name, subdomain, TLD, or path. It validates URLs, handles both domains and full URLs, and can group results by domain.

Features
  • Multiple Sort Options: Sort by domain, subdomain, TLD, or URL path
  • URL Parsing: Automatically extracts and sorts relevant parts of URLs
  • Domain Grouping: Optionally group URLs by their base domain
  • Validation: Detects and optionally removes invalid URLs/domains
  • Protocol Handling: Works with http, https, ftp, and bare domains
  • Subdomain Support: Properly handles www, api, cdn, and other subdomains
  • Domain Statistics: Show counts of unique domains and TLDs
Supported Formats
  • example.com - Bare domain
  • www.example.com - With subdomain
  • https://example.com - Full URL with protocol
  • https://example.com/path/to/page - URL with path
  • api.subdomain.example.co.uk - Multi-level subdomain
  • https://user:pass@example.com:8080/path - Complex URL
Sort Options Explained
  • Domain Name: Sort by main domain (example.com, google.com)
  • Full Domain: Sort including subdomain (api.example.com, www.example.com)
  • TLD: Sort by top-level domain (.com, .org, .co.uk)
  • URL Path: Sort by the path portion of the URL (/api/users, /about)
Common Use Cases
  • Sort bookmarks or reading lists
  • Organize website sitemaps
  • Sort API endpoint lists
  • Clean up link collections
  • Organize server logs by domain
  • Sort DNS records or hosts files
How to Use
  1. Input domains/URLs via text input, file upload, or URL (one per line)
  2. Select what to sort by (domain, subdomain, TLD, or path)
  3. Select sort order (A-Z or Z-A)
  4. Optionally remove duplicates or invalid entries
  5. Choose display options (grouping, statistics)
  6. Click "Sort URLs" to process your data
  7. Copy the results or download as a text file
Tip: The tool automatically detects whether you've entered bare domains or full URLs and handles them appropriately. You can mix both formats in the same list.


Feedback

Help us improve this page by providing feedback:


Share with