Text ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Text Tools

Markdown Link Extractor

Extract every link from Markdown, including reference links, autolinks, bare URLs and images, with line numbers. Export a table, URL list or CSV.

View all tools
ResultUpdates as you type
LineTypeTextURLTitle
1Inline linkhome pagehttps://chatgpt.org.uk
1Inline linktoolboxhttps://tools.chatgpt.org.ukOnline tools
2ImageLogohttps://example.com/logo.png
3Reference linkdocshttps://example.com/docsDocumentation
3Autolinkhttps://example.com/autohttps://example.com/auto
3Bare URLhttps://example.org/page?id=1
4Inline linkWikipediahttps://en.wikipedia.org/wiki/Markdown_(disambiguation)

7 items, 7 of them http(s) links. Links inside code are ignored.

How to use Markdown Link Extractor

Paste a README, blog post or documentation page in Markdown and the links are listed as you type. Choose table, URLs only, Markdown list or CSV, and decide whether to include images and bare URLs or list each URL once.

  1. Paste the MarkdownPaste a README, docs page or post, including any reference definitions at the bottom.
  2. Choose what to includeKeep or drop images and bare URLs, and tick List each URL once to remove repeats.
  3. Export the linksReview them in the table, or switch to URLs only or CSV for a link checker or spreadsheet.

Which link types are found

Inline links and images, reference links resolved through definitions such as [docs]: https://example.com/docs, collapsed and shortcut references, autolinks in angle brackets (including email addresses) and bare URLs starting with http, https or www are all found. URLs containing brackets, such as Wikipedia's Markdown_(disambiguation) page, are kept whole. Anything inside fenced code blocks or inline code is ignored, so code samples are not reported. The default sample yields 7 items: three inline links, an image, a reference link, an autolink and a bare URL.

Checking a document's links

The table shows each link's line number, type, text, URL and title, which makes it easy to find broken or outdated links in long documentation. References that point to a missing definition are listed in a warning, links with an empty URL are counted, and definitions that are never used appear as Unused definition rows. The URLs only output pastes straight into a link checker, CSV gives text and url columns for a spreadsheet, and Markdown list produces a ready-made list of links. Images can be included or left out.

Accuracy and data handling

Before copying the output, check names, punctuation and the intended meaning against the source text. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

How do I extract all links from a Markdown file?

Paste the Markdown into the box. Every link appears in a table with its line number; choose URLs only, one per line to copy just the addresses.

Are image links included?

Yes, by default, marked as Image. Untick Include images to list only ordinary links.

Are plain URLs in the text found?

Yes. URLs starting with http://, https:// or www. are listed as Bare URL, with trailing punctuation trimmed off. Untick Include bare URLs to ignore them.

Why is a link missing from the results?

Links inside code blocks or inline code are skipped on purpose. A reference link whose definition is missing appears in a warning instead of the table.

More Text Tools

Related tools