Trim URL to First Folder
Keep the origin and the first path segment, dropping deeper folders and query strings.
Input URLs
Paste one URL per line. Invalid entries are skipped.
Results
One trimmed URL per line.
Trim URL to First Folder
Paste URLs and the trimmer keeps the origin plus the first path segment, so https://example.com/blog/post/42 becomes https://example.com/blog. It is the quickest way to see which sections a list is concentrated in.
Step by step
- Paste one URL per line. Invalid entries are skipped.
- Click Trim to First Folder.
- Check the counters and scan the resulting section list.
- Copy the result and deduplicate to count how many URLs each section holds.
Tips for better results
- Run the output through Remove Duplicate Entries to turn a huge crawl into a short list of sections.
- Sections with thousands of URLs and no internal links pointing at them deserve a closer look.
- Keep the mode consistent when comparing a crawl against a sitemap, so both lists group the same way.
Frequently asked questions
What counts as the first folder?
The first non-empty path segment after the domain, for example /blog/ in https://example.com/blog/post/42. URLs that sit on the domain root are returned unchanged.
Are query strings removed?
Yes. Only the origin and the first folder survive, which is what makes the grouping useful.
Can I keep two levels of folders?
Not with this helper. Export the full URLs and use a spreadsheet formula for deeper grouping.
Related free SEO tools
Browse the full collection of free browser-based helpers or contact us with a general question.
Browse all tools