USE CASE · IN YOUR BROWSER

Extract every URL from a block of text

Paste an email, a document or chat notes, and AIVane picks out every web address that starts with http:// or https://, drops repeats and the punctuation that follows a link, and writes one row per address with its domain and protocol. Our sample paragraph had links at the end of sentences, inside brackets and with a query string; the CSV listed five distinct links.

How it works

  1. Copy the URL extractor. Choose Try it in your browser. The automation needs no browser: it scans the text with a pattern, removes repeats and writes the list.
  2. Paste your text. Replace the sample in the Text box with your own, as long as you like. Line breaks and formatting do not matter.
  3. Use the domain column. Sort or count by domain to see which sites the text points to most, then open or check the links you need.

Try it on the practice site

  1. 01

    Open Extract URLs From Text

    After you sign in from the Try it link, the automation is in My automations with four steps: find the links, remove duplicates, split each link into protocol and domain, and save the table. Links are kept in the order they first appear.

    The automation Extract URLs From Text in My automations: Ready, 4 steps, Find the links, Remove duplicates, Split each link and Save the table
  2. 02

    Paste the text and run it

    Choose Run. Text to scan holds a sample that begins: Our docs are at https://aivane.net/docs and the blog is at http://example.com/blog/post-1. Replace it with your own text. Output file is urls-from-text.csv. Choose Confirm and run.

    The Run automation dialog in AIVane Cloud with a sample paragraph in Text to scan, urls-from-text.csv as Output file and the Confirm and run button
  3. 03

    Download urls-from-text.csv

    The CSV had five rows, for example http://example.com/blog/post-1 with domain example.com and protocol http, without the full stop that followed it in the text. Our run took 1 minute 24 seconds in total.

    Run details of the succeeded cloud run Extract URLs From Text: Outputs lists urls-from-text.csv with a Download button and the last step says 5 rows

How other methods compare

Find in a text editor
Searching for http finds the links one at a time. The extractor collects them all and removes the duplicates.
Spreadsheet formulas
REGEXEXTRACT in Google Sheets pulls one match per cell. Extracting every link from a long text takes extra formulas; the automation does it in one step.
Online URL extractors
Quick for one paste. The automation adds the domain and protocol columns and can be part of a larger workflow.

Frequently asked questions

Does it find links without http:// or https://?

No. Addresses written like example.com or www.example.com without a protocol are not picked up, to avoid matching ordinary words with dots.

What happens to punctuation after a link?

The automation leaves out a full stop, comma, semicolon, colon, exclamation or question mark, or a closing bracket at the end of a link. In our sample, http://example.com/blog/post-1 came out without the full stop that followed it.

Are query strings kept?

Yes. Everything after the domain, including the path and parameters such as ?lang=en, stays in the url column.

Can I extract just the domains?

Each row has a domain column. Remove duplicates on that column in your spreadsheet to get a list of unique domains.

Is the URL extractor free?

Free includes 3 saved automations, local runs of up to 15 minutes each and a one-time 10-minute AIVane Cloud trial. Our run used 1 minute 34 seconds of cloud time.

Want a hand with this?

Our first users can ask for hands-on help: one website task, one sheet, and a week of watching it run.

Get help automating this task

Last verified 2026-11-28 with the AIVane web workspace at app.aivane.net (production server of 2026-11-28).