convert-csv.com logo convert-csv.com

URL Extractor

Extract all URLs from pasted text or HTML into a deduplicated CSV.

100% Secure - your files are processed in your browser and never sent to a server.
Drop your file hereor click to browseSupports CSV, TSV, or TXT files (.csv, .tsv, .txt) (Max 100MB)

URL extraction from text is fundamental for web scraping analysis, SEO auditing, and content link analysis. This tool scans text or HTML content and extracts every URL, including HTTP, HTTPS, FTP, and protocol-relative links. It deduplicates the results and outputs a clean CSV with columns for the URL, the protocol, the domain, the path, and the surrounding context. The extractor handles both absolute URLs (https://example.com/path) and relative URLs (/about, ../page), normalizing relative paths against a configurable base URL. It processes pasted text, uploaded files, or HTML content (stripping tags before extraction). All processing runs in your browser, which is important when analyzing sensitive content like internal documentation, API responses, or confidential web pages. The output CSV is ready for import into SEO tools, link checkers, or web analytics platforms.

How to use the URL Extractor tool

  1. Load your text: Drag and drop a text or HTML file, choose a file from your file explorer, or paste text directly into the paste area.
  2. Extract URLs: Click the "Extract URLs" button to find and deduplicate every URL in the input.
  3. Export results: Copy the extracted URLs to your clipboard or download them as a CSV file.

Frequently asked questions

What URL protocols does the extractor detect?
The tool detects HTTP (http://), HTTPS (https://), FTP (ftp://), and protocol-relative URLs (//example.com). URLs are extracted with their original protocol.
Does it handle relative URLs?
Yes. Relative URLs (like /about or ../page) are extracted and can be normalized against a base URL you specify. This is useful for analyzing local HTML files.
How are duplicate URLs identified?
URLs are deduplicated exactly (case-sensitive). You can optionally normalize URLs before deduplication to treat http and https versions as the same URL.
Can I extract URLs from a sitemap or HTML file?
Yes. Paste the sitemap XML or HTML content, and the extractor will find all URLs. For sitemaps, URLs are typically in <loc> tags which the parser handles.
Is the output suitable for broken link checking?
Yes. The CSV output includes all extracted URLs, which you can import into link-checking tools like Screaming Frog, Ahrefs, or custom scripts.

Related tools