Free tool

Extract the domain from a URL

Extract the domain from a URL on each line: https://www.shop.example.com/page becomes shop.example.com, or example.com if you only want the main domain.

The example is loaded. Paste your own list to replace it.

1
Get the domain from each link

→ 3 lines

Drop www.

Main domain only (shop.example.com → example.com)

Each domain once

Drop lines with no domain

Your text

3 lines

Result

3 lines

What it does

Turn https://shop.example.com/page into shop.example.com.

Settings you can change

  • Drop www.
  • Main domain only (shop.example.com → example.com)
  • Each domain once
  • Drop lines with no domain

When to use it

You collected hundreds of links and want to know which websites they point to.

Example: extract domain from URL

Settings used: Main domain only (shop.example.com → example.com): on.

Input

Result

Used in these recipes

Often used with

Find every web address in the text, one per line.

Keep one copy of each line.

One row per value with its count, most common first. Pastes into a spreadsheet as two columns.

All free tools

Your text stays on this computer
The list editor works on your computer. The text you paste or open is not uploaded or stored by HeyScraper, and closing the page clears it. Saved recipes are kept in this browser only.

Got your list from a web page?

HeyScraper turns the page you’re on into a spreadsheet, so you can skip the copying and pasting. Free: 500 pages a month.

Get HeyScraper