URL Extractor

URLs found—
Unique URLs—

How URL Extractor is calculated: URLs match the pattern http://, https://, or www. followed by non-space characters. The tool strips trailing punctuation, then removes duplicates.

What is a URL?

A extract urls from text is a free online tool that pulls every URL out of pasted text so links can be collected from documents It finds every link with a regular expression, strips trailing punctuation, removes duplicates, and lists them one per line. It gives the answer instantly as you type, with the main result shown first and the supporting figures underneath, so you can check the headline number and the working behind it in one glance.

It is used by SEOs, researchers, and editors collecting links from documents. A URL parser breaks any one of the extracted links into its parts — protocol, host, path, and query — which is the next step after collecting them.

To use it, enter the text the links are buried in. The tool runs entirely in your browser: nothing you type is uploaded, stored, or shared, and there is no sign-up. You can change any value and the results update at once, which makes it easy to test what happens when one input moves.

How the URL works

A URL starts with http://, https://, or www., followed by characters that are not spaces. The regular expression looks for exactly that shape. The method the tool uses is: URLs match the pattern http://, https://, or www. followed by non-space characters. The tool strips trailing punctuation, then removes duplicates.. Every part of that method has one meaning and one unit, and keeping the units straight is most of the work in getting a right answer.

By hand, the steps are: read the text, match every URL pattern, strip trailing punctuation from each match, drop duplicates, and list what is left one per line. The tool does the same steps in the same order, so a hand check on one example should land on the same number the page shows, allowing for the rounding in the display.

The results are counts: how many URLs were found and how many are different. The list itself is the output, one URL per line, in the order they first appear. The tool trusts the numbers you enter: it cannot tell whether a measurement was read correctly, so a wrong input gives a wrong-looking answer with no warning. Always check the units before trusting a result.

One more check: the method above is the one the page uses, so a book or chart that writes it differently is usually just rearranging the same relation or using different words. Match the quantities by their meaning, not by their shape, and the numbers will agree. If your source gives the answer in different units, convert at the end rather than in the middle, so a conversion slip cannot hide inside the working. When the answer sits close to a boundary, such as a band edge, a grade cut, or a target you must not cross, treat the displayed rounding as part of the check: a value shown as 15.0 might be 14.96 or 15.04 underneath, and the page rounds for display, not for judgement. If that edge matters, run the numbers once more with the full precision the inputs allow and read the exact result, not the rounded one. The same care applies when you change one input and the answer barely moves: a small change in an input can still matter if the result feeds a next step, so check the unrounded figure before you carry it forward.

Trailing punctuation is not part of the link

The most common extraction mistake is swallowing the full stop at the end of a sentence. A link written as 'see https://example.com/blog/post-1.' ends with a full stop that belongs to the sentence, not to the link, and a tool that keeps it produces a broken URL. This tool strips trailing full stops, commas, colons, semicolons, exclamation marks, question marks, and closing brackets from every match.

The pattern accepts http://, https://, and www. addresses, and it stops at the first space, quote, or angle bracket, which is where a link ends in ordinary text. It does not follow links across line breaks, so a URL wrapped onto two lines in a document is read as two pieces — unwrap it first if that matters.

Duplicates are removed exactly, so the same link written twice counts once, but the same page with and without a trailing slash counts as two different links. That is correct behaviour for a collector: the two spellings can point to different pages, and only the server knows whether they are the same.

A worked example

Take this example: the note in the box, with the guide linked twice and the blog once. The guide appears twice, so the total and the unique count differ — which is the point of the example. Put those numbers into the tool and it returns URLs found 3 URLs found; Unique URLs 2 unique URLs.

Working it through by hand: the note contains 3 URLs, and after removing the duplicate the list has 2 unique URLs. The hand result matches the tool exactly, which is the point of the check: if your own working gives a different number, one of the inputs was typed in the wrong unit or the wrong box.

Try a second set to see how the answer moves: a note with no URLs at all. the note contains 0 URLs, and the output says so plainly instead of failing Changing one input at a time and watching the result is the fastest way to build a feel for the method, and it is how most people spot a typing error before it matters.

Who uses a URL and why

SEOs are the first group. A competitor's page or a long document holds dozens of links, and the extractor turns an afternoon of copying into a single list for an audit.

Researchers are the second group. A set of papers or reports cites sources as links in the text, and the extractor gathers them into a bibliography in one paste. A diff checker is a natural companion here, since the two jobs often come up in the same session.

Editors are the third group. A draft with links scattered through it needs a link check before publishing, and the extracted list is the checklist. None of these uses needs an account or an install: the page opens, the values go in, and the answer is there.

The common thread across all three groups is that a number beats a guess. A rough guess in the kitchen wastes ingredients, and a rough guess in a draft wastes a revision. Checking the number first costs seconds and saves the redo.

URL Extractor vs text formatter

A text formatter answers a different question: it tidies and reformats the same text. The two tools look similar because they share inputs, but they solve for different unknowns, and picking the wrong one is the most common source of confusion between them.

Use this URL when the quantity you need is the one named in the title above. Use the text formatter when your unknown is the one it is named for instead. If a task gives you the answer this page produces and asks for something else, that something else is usually the job of the companion tool.

In practice the two are used back to back: work out the first quantity here, then carry it into the second tool as an input. Keeping the chain in that order, and writing each intermediate answer down, stops small rounding slips from growing into a wrong final answer.

Common mistakes with a URL

The first mistake is trusting a link with trailing punctuation. A full stop copied into a browser address bar gives a 'page not found', and the extractor strips it — but only if the punctuation is at the very end of the match.

The second is expecting wrapped links to survive. A URL broken across two lines in a document is read as two pieces, because the pattern stops at the line break. Join wrapped links before pasting.

The third is assuming every extracted link works. The pattern checks the shape, not the destination: a well-formed link to a dead page passes the check. Click through the list to verify the pages exist. A quick habit that catches all three: work one example by hand, compare it with the tool, and only then trust the page for the rest of the job.

How to use this URL

Step one, enter the text the links are buried in. Step two, check the units beside each box match the units in your task. Step three, read the main result at the top of the results box, then the supporting figures below it.

For the most accurate results, use the most precise inputs you have, and keep the same unit system all the way through: mixing units is the single biggest cause of answers that are out by a factor of ten. Paste the whole document, not just the visible text: links hide in footnotes, captions, and quoted replies too.

The tool is free, works on a phone or a computer, and needs no sign-up. Everything runs in your browser, so your numbers never leave your device, and closing the page leaves nothing behind.

If the answer looks wrong, change one input at a time and watch which one moves the result. A result that jumps by a factor of ten usually means a unit slipped, while a result that barely moves when an input changes usually means that input matters less than expected. Both patterns are worth knowing.

Frequently Asked Questions

The formula is URLs match the pattern http://, https://, or www. followed by non-space characters. The tool strips trailing punctuation, then removes duplicates.. A URL starts with http://, https://, or www., followed by characters that are not spaces. The regular expression looks for exactly that shape. Put the values in with matching units and the tool applies the formula directly, with no hidden adjustments.

Paste the text into the box. The tool finds every http://, https://, or www. link, strips trailing punctuation, removes duplicates, and lists the unique URLs one per line. Copy the list straight into your audit or spreadsheet.

The note contains URLs found 3 URLs found; Unique URLs 2 unique URLs. The guide is linked twice and the blog once, so the total is three and the unique list has two URLs.

No. It checks the shape — a scheme or www. followed by non-space characters — not whether the page exists. A well-formed link to a dead page passes. Click through the list to verify the destinations.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.