My Tool Studio
Text

URL Extractor

This URL extractor finds every link in text you paste or a file you open and lists them one per line, with duplicates removed. It picks up http, https and ftp links, addresses that start with www., and bare domains like example.com if you switch that on. Trailing full stops, commas and stray brackets are trimmed, and & in links copied from HTML becomes &. Filter by link type, such as pages, images or documents, keep or exclude domains, strip query strings, or list domains only. A domain breakdown counts links per site. Writers collect sources from a draft and developers grab every href and src from HTML. Sort, change the separator and download .txt or .csv. It never opens the links it finds.

Always freeNo sign upRuns in your browser
Need links from a live page? Use the Link Extractor.

How to use

01

Paste text or HTML

Put notes, an email, a chat log or HTML source in the Input pane, press Open file, or fetch a public page's HTML. Links appear in the output straight away. Try sample shows links inside brackets, an href and an image src.

02

Adjust what gets matched

Pick a Link type, tick Remove ?query and #fragment or Domains only, and Also find bare domains to catch example.com. Use Only these domains, Exclude these domains, Sort and Separator to shape the list.

03

Copy or download the links

Click Copy above the output pane, or download with .txt or .csv, which adds a domain column. The summary shows totals and duplicates, and the Domains list counts links per site.

Why URL Extractor

Pasted text vs a live page: which link tool to use

The URL Extractor and the Link Extractor sound alike but start from different places. This page works on text you already have. It only goes online if you use Fetch page, so it suits private documents, exports and drafts, and it finds links written as plain text as well as links in HTML attributes.

The Link Extractor in the SEO category starts from a page address. It downloads that page, reads the anchor tags and splits the links into internal and external. It is the right tool for auditing a live site, but it only sees what is in the page's HTML, not text inside PDFs or emails. If a page is behind a login, copy its source from your browser and paste it here instead.

URL ExtractorLink Extractor
InputText or HTML you pasteA page URL
Goes onlineOnly if you fetch a pageYes, fetches the page
Finds plain text linksYesNo, anchor tags only
Finds image and script srcYesNo
Internal vs external splitDomain breakdown and filtersYes
Relative links like /aboutNoYes, resolved to full URLs

Common questions

What is the difference between the URL Extractor and the Link Extractor?
This URL Extractor reads text you paste, such as notes, exports or HTML source. The Link Extractor in the SEO tools fetches a live web page from its address and lists the links in its HTML. Use this one when you already have the text, and the Link Extractor when you only have a page address.
How do I extract all links from a text file?
Press Open file and choose it, or drop it on the Input pane. Text, CSV, HTML, Word, PowerPoint and PDF files with a text layer all work. Every link is listed once, in the order it first appears. Use the .txt button to save the list as a new file.
Can I extract URLs from an Excel or CSV export?
Yes. Copy the cells or open the CSV in a text editor and paste the contents. Commas, quotes and tabs between cells end a link, so each one comes out clean. A comma followed by a digit is kept, because map links use commas between coordinates.
How do I extract links from HTML source code?
Paste the source and every address inside href and src attributes is picked up, because quotes and angle brackets end each match. Relative links such as /about have no domain, so they are not found. & in a link is converted back to &.
Does the URL extractor find links without http or https?
Links starting with www. are always found. Bare domains like example.com/start are found when you tick Also find bare domains, but only for common endings such as .com, .org, .net, .io, .in, .co.uk and .dev. The list is limited on purpose so that file names like report.pdf are not mistaken for links.
Why did a link lose its last bracket or full stop?
Punctuation at the very end of a link is usually part of the sentence, so full stops, commas, colons, quotes and closing brackets without a matching opening bracket are trimmed. A link like a Wikipedia page ending in (bar) keeps its bracket because it has a matching opening one.
Does the URL extractor check whether each link works?
No. It only matches text patterns and never opens, resolves or pings any address it finds. Paste the list into a link checker if you need status codes.
How do I extract only image links or PDF links?
Choose Images or Documents in the Link type menu. Images covers endings like .jpg, .png, .webp and .svg, and Documents covers .pdf, Word, Excel, PowerPoint, .csv and archives such as .zip. Pages only keeps links that do not end in a file type. The check ignores query strings, so photo.jpg?w=600 still counts as an image.
Is pasted text sent anywhere when I extract URLs?
No. The matching runs in your browser tab, and files you open are read on your device. Contracts, internal notes and unpublished drafts stay on your device. Only Fetch page contacts a server, to download the page you entered.

More Text tools

View all