Extract all links from HTML code and save them in a CSV.
About HTML Links to CSV
Auditing a page's links, building a list of resources from a directory page or collecting every download link on a site starts with the same tedious step: pulling the anchors out of the HTML. This tool parses the HTML you paste, finds every <a> element and writes a CSV with the link text and the href of each one.
Paste the HTML source, click Extract and download the CSV. The page is parsed in your browser, so nothing is fetched or uploaded.
How to use HTML Links to CSV step by step
Copy the HTML of the page or section (view source, or Copy outerHTML in the developer tools) and paste it into the HTML box.
Click "Extract links to CSV". The result box shows one row per link with two columns: link text and URL.
100% free and online: no payments, no software or extensions to install.
Privacy-first: processing happens in your browser, your data never leaves your device.
No sign-up: paste your data and get the result in one click.
Fast and reliable: handle small or large files in seconds, ready for Excel and other tools.
Common use cases
Build a list of internal links for an SEO audit of a category page or a sitemap page.
Collect every PDF or download link from a documentation page.
Extract the URLs of all products listed on a category page for a competitor price check.
Turn a bookmarks export (HTML) into a spreadsheet.
Limits and tips
Relative URLs such as /pricing are exported exactly as written in the href; prefix them with the site domain in your spreadsheet if you need absolute links.
Anchors without an href are exported with an empty URL; links created by JavaScript after page load are not in the source and are not found.
The link text is the visible text of the anchor with quotes doubled; images inside links produce an empty text cell.
Every link is listed, including duplicates and navigation links; remove duplicates in your spreadsheet if needed.
Frequently asked questions
What columns does the CSV contain?
Two: texto_del_enlace (the visible text of the link) and url_del_enlace (the value of the href attribute). Both values are wrapped in double quotes so that commas in link text do not break the CSV.
Why are some links missing?
Links inserted by JavaScript after the page loads are not in the HTML source. Copy the element from the developer tools, which reflects the rendered DOM, or use the URL Extractor tool on the page text if the URLs are visible as text.
Can I extract links from a URL directly?
Not with this tool: it works on HTML you paste. Open the page, copy its source and paste it here. The Convert Web to Text tool fetches a URL through a proxy but returns text, not links.
What is the difference between this tool and the URL Extractor?
HTML Links to CSV reads the <a> elements of HTML and returns text plus href, including relative links. URL Extractor scans any plain text for strings starting with http:// or https:// and returns only the URLs it finds.
Is the HTML uploaded?
No. The HTML is parsed with the DOMParser in your browser and the CSV is created locally.
Related tools
Other free utilities you may find useful
URL Extractor — Extract all URLs (links) from a block of text.
Excel to CSV — Convert an Excel workbook (.xlsx, .xls, .ods) to UTF-8 CSV, choosing the sheet and the delimiter (comma, semicolon or tab).
Fixed-Width to CSV — Transform fixed-width text into a well-structured CSV file.