Text tools

Markdown Link Extractor

Markdown Link Extractor

List every link, image and reference in a Markdown file and flag broken anchors, http links and images without alt text.

About this tool

About Markdown Link Extractor

Before you publish documentation or merge a README, it helps to see every link in one place. Paste Markdown and this extractor lists all inline links, images, reference-style links, reference definitions and autolinks with their text, URL, title and line number. Each entry is classified as a web link, an email, a phone link, an in-page #anchor or a relative path to another file, and filters show only web links, images, anchors, relative paths or problems. Problems are flagged without visiting any site: #anchor links that don't match a heading in the document (using GitHub's anchor rules), links that still use http instead of https, javascript: and other unsafe schemes, empty URLs, images without alt text, reference definitions that are never used and references defined twice. Copy the unique URLs, for example to run them through a link checker, or download the full report as CSV for a docs review. Headings and links are read by the same parser as the Markdown editor, so code blocks are skipped. Nothing is fetched or uploaded.

Built and maintained by Abhi JainUpdated

How to Extract Links From Markdown

  1. 1

    Paste Markdown

    Paste your document into the Markdown box or open a .md file. Click Sample to see each kind of problem.

  2. 2

    Filter

    Click All, Web, Images, Anchors, Relative or Problems to narrow the list.

  3. 3

    Export

    Click Copy URLs for a plain list, or CSV to download the full report with line numbers and problems.

Markdown Link Extractor: questions and answers

Does it check whether web links are dead?

No. Checking external links would mean sending requests from your browser to every site, which is slow and leaks what you're reading. It checks everything that can be checked locally: anchors, schemes, alt text and references.

How are anchor links checked?

Every heading's anchor is generated with GitHub's rules, and each #link is compared with them. A link to #instalation when the heading is Installation is flagged.

Why does it warn about http links?

Plain http links can be blocked or show warnings in browsers. Most sites support https, so changing the link is usually a one-letter fix. Links to localhost are not flagged.

Why do images need alt text?

Screen readers read the alt text aloud, and it shows if the image fails to load. GitHub and most linters treat ![](image.png) as an accessibility problem.