pdftoolskit.org
65 PDF tools that run in your browser
Sign in Create account

Extract Links from a PDF

link annotations + URLs in the text · page numbers · CSV per file

Drop a PDF and click Extract links. You get a table of every URL, where it came from (a clickable link annotation or the page text) and the page it is on, plus a CSV with the same three columns. A link whose visible words say one thing and point somewhere else shows up here, because the target is listed, not the label. The file is read in your browser.

Drop PDF files here or click to select

One or many · a link table and CSV per file

    no files
    Ready.

    No PDF handy? Try one from the sample library. None of the samples carries a link, so expect "No links found" from them.

    Two kinds of link

    Annotations are what makes text clickable: a rectangle on the page with a URI action attached. They are read with pdf.js and the URL is listed as stored, whatever the visible text says. Internal go-to-page links and outline bookmarks have no URL and are not listed.

    Text URLs are addresses printed in the content, such as a footnote reading https://example.com/report. The page text is scanned for anything starting http://, https:// or www., running to the next space, quote or bracket, with a trailing full stop, comma, semicolon or colon trimmed. Bare domains without www. and mailto: addresses are not found.

    The table and the CSV

    How to extract all the links from a PDF

    1. Drop one or more PDFs. Each file gets its own table and CSV.
    2. Decide whether to scan the text too. Annotations only gives you the clickable links; scanning the text adds addresses that were typed but never linked.
    3. Choose how to treat duplicates: one row per URL and source, or every occurrence with its page.
    4. Click Extract links and read the table. The status line shows the page being scanned.
    5. Download the CSV to check the links in bulk with a link checker.

    FAQ

    Does it check whether the links work?

    No. Nothing is requested; extraction is offline by design. Feed the CSV to a link checker for status codes.

    Will it find links inside images?

    Only when a link annotation covers the image, which is how a clickable banner is usually built. An address painted into the picture itself needs OCR first, then a text scan of the result.

    Why does the same URL appear twice with duplicates removed?

    Because it is both a clickable annotation and printed text. Duplicates are removed per source, so the two rows stay; the Source column tells them apart.

    What about internal links and bookmarks?

    Only external URLs are listed. For the outline use PDF bookmarks; for comments and highlights use Extract annotations.

    Related tools

    Part of: Audit a folder of PDFs before archiving

    Look before you strip. The inspector and the extractors tell you what is in the files; only then decide what to remove and what to lock.

    1. 1 PDF Inspector Metadata, page boxes, fonts and encryption for each file
    2. 2 Extract PDF Attachments Pull out any files embedded inside the PDFs
    3. 3 Search Inside PDFs Find which documents mention a name or a number
    4. 4 Extract PDF Links Every URL, with page numbers, as CSV
    5. 5 Remove PDF Metadata Strip author and software fields before the files leave

    This workflow, start to finish · all 20 workflows