---
url: https://findutils.com/guides/internet-shortcuts-to-csv
title: "How to Extract URLs from Windows .url Shortcut Files to CSV"
description: "Turn a folder of Windows Internet Shortcut .url files into a CSV or a plain URL list. See what a .url file contains, how .lnk and .webloc files differ, and the PowerShell alternative."
category: converters
content_type: guide
guide_type: subtopic
cluster: bookmarks
locale: en
read_time: 6
status: published
author: "olgunozoktas"
published_at: 2026-09-17T12:00:00Z
excerpt: "A .url file is a few lines of text with the address on a URL= line, and Windows only opens it when you double-click. Here is how to read dozens of them at once into a spreadsheet, and which shortcut files are a different format."
tag_ids: ["bookmarks", "browser", "csv", "data-conversion", "productivity"]
tags: ["Bookmarks", "Browser", "CSV", "Data Conversion", "Productivity"]
primary_keyword: "url files to csv"
secondary_keywords: ["extract url from .url file", "internet shortcut to csv", "windows shortcut url list", "export internet explorer favorites to csv", ".url file format", "convert .url files"]
tool_tag: "internet-shortcuts-to-csv"
related_tool: "internet-shortcuts-to-csv"
related_tools: ["internet-shortcuts-to-csv", "bookmarks-html-to-csv", "dedupe-bookmarks", "opml-to-csv", "clean-zip"]
og_image: "/images/content/guides/internet-shortcuts-to-csv-cover-20260917.webp"
image_alt: "Blank cream luggage tags with terracotta strings scattered on linen beside the same tags lined up in even rows on an oak board."
updated_at: "2026-09-25T12:00:00Z"
---

Extract the URLs from Windows `.url` files by reading the `URL=` line in each file's `[InternetShortcut]` section. FindUtils [Internet Shortcuts to CSV](/convert/internet-shortcuts-to-csv/) does that for as many files as you drop, or for every `.url` file inside a ZIP, and writes a CSV with the name, URL, working directory and icon of each shortcut, or a plain list of URLs. The files are read in your browser and no link is opened.

This guide explains what a `.url` file contains, how its lines become CSV columns, which shortcut files are a different format, and how to do the same job in PowerShell.

## What Is a .url File?

A `.url` file is a Windows Internet Shortcut: a small plain-text file that stores one web address. Windows creates one when you drag a link from a browser's address bar to the desktop or a folder, and Internet Explorer stored its Favorites the same way. Double-clicking the file opens the address in the default browser.

The file uses INI format, with the address on a `URL=` line inside an `[InternetShortcut]` section:

```ini
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,11
[InternetShortcut]
IDList=
URL=https://docs.example.com/start
IconFile=https://docs.example.com/favicon.ico
IconIndex=1
```

The first section, with the long identifier, is extra property data that some browsers add. Only the `[InternetShortcut]` section describes the link.

## What Do the CSV Columns Mean?

| Column | Source in the .url file | Example |
|---|---|---|
| name | The file name without `.url` | `Team Docs` for `Team Docs.url` |
| url | The `URL=` line | `https://docs.example.com/start` |
| working_directory | The `WorkingDirectory=` line, when present | `S:\Finance` |
| icon_file | The `IconFile=` line, when present | `https://docs.example.com/favicon.ico` |

Key names are matched in any letter case, so `url=` and `URL=` both work, and Windows CRLF line endings and a byte order mark at the start of the file are accepted. A value containing a comma, a quote or a line break is quoted in the CSV.

## How to Convert .url Files to CSV

1. Select the `.url` files in File Explorer and drop them on [Internet Shortcuts to CSV](/convert/internet-shortcuts-to-csv/), or drop a ZIP that contains them.
2. Choose **CSV** for a spreadsheet or **TXT** for one URL per line. Turn on **Remove duplicate URLs** if the same link was saved more than once.
3. Check the preview and the skipped files, each listed with its reason.
4. Download the file. Keep **Excel BOM** on when the CSV will open in Excel, so accented names display correctly.

Files dropped later are added to the same output. For shortcuts spread across several folders, compress the top folder into a ZIP in File Explorer and drop the ZIP: every `.url` file inside it is read, in subfolders too, while `__MACOSX` entries are ignored.

In our test, four `.url` files, one `.lnk` file and a ZIP holding two more shortcuts gave five rows and two skipped files: the `.lnk` file and a shortcut with no `URL=` line. With **Remove duplicate URLs** on, the two shortcuts that appeared both loose and inside the ZIP collapsed, leaving three rows.

## Which Shortcut Files Are Different?

| File | Format | Handled how |
|---|---|---|
| `.url` | INI text with `[InternetShortcut]` | Converted |
| `.lnk` | Binary Shell Link, defined by Microsoft's [MS-SHLLINK](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-shllink/16cb4ca1-9339-4d0c-a68d-bf1d6cc0f943) specification | Skipped with the reason; it points to programs, files and folders |
| `.webloc` | macOS property list | Skipped; convert it with [Webloc to URL](/convert/webloc-to-url/), which writes `.url` files and a name,url CSV |
| Browser bookmarks export | Netscape bookmarks HTML | Use [Bookmarks HTML to CSV](/convert/bookmarks-html-to-csv/) |

A `.lnk` file is recognised by its name, or by its first four bytes, `4C 00 00 00`, the header size every Shell Link file starts with. Renaming a `.lnk` file to `.url` does not make it readable as text.

## Are the Links Opened or Checked?

The links are not opened or checked. Internet Shortcuts to CSV copies each address as text, so no website learns that you converted your shortcuts, and a link that no longer works still appears in the output. Addresses that are not web pages, such as `file:///S:/Finance/`, are kept exactly as written and flagged in the notes, because they open local or network locations when double-clicked.

## PowerShell Alternative

On Windows, PowerShell's [Select-String](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/select-string) pulls the `URL=` lines out of one folder:

```powershell
Select-String -Path *.url -Pattern '^URL='
```

Each result shows the file name, the line number and the matched line, which still need trimming before they form a list. The command does not read ZIP files, does not produce separate name and URL columns, and needs a shell. Internet Shortcuts to CSV gives the same result as a ready CSV and runs in any browser, including on a Mac or Linux machine that received the files.

## Common Mistakes

**Dropping `.lnk` shortcuts from the desktop.** Desktop shortcuts to programs are `.lnk` files, not `.url` files, and hold no web address.

**Expecting `https://example.com` and `https://example.com/` to merge.** Remove duplicate URLs matches addresses exactly. For looser matching, such as ignoring tracking parameters, export bookmarks and use [Dedupe Bookmarks](/convert/dedupe-bookmarks/).

**Opening the CSV in Excel without the BOM.** Names with accented letters can display incorrectly. Keep Excel BOM on for Excel.

## Tools Used in This Guide

| Tool | Use |
|---|---|
| [Internet Shortcuts to CSV](/convert/internet-shortcuts-to-csv/) | Turn `.url` files or a ZIP of them into a CSV or URL list |
| [Bookmarks HTML to CSV](/convert/bookmarks-html-to-csv/) | Do the same for a browser bookmarks export |
| [Dedupe Bookmarks](/convert/dedupe-bookmarks/) | Remove duplicate links with looser matching |
| [Clean ZIP](/convert/clean-zip/) | Remove Mac and Windows junk from the ZIP before sharing it |

## FAQ

### How do I see the URL inside a .url file?

Open the file in Notepad and read the `URL=` line, or right-click it, choose Properties and look at the URL field on the Web Document tab. To read many at once, drop them on [Internet Shortcuts to CSV](/convert/internet-shortcuts-to-csv/).

### Can I convert Internet Explorer Favorites?

Yes. Internet Explorer saved each favorite as a `.url` file in the Favorites folder of your user profile. Compress that folder into a ZIP and drop it; every favorite becomes a row, including those in subfolders.

### Why was a file skipped?

Each skipped file is listed with its reason: no `[InternetShortcut]` section, no `URL=` line, an empty file, a `.lnk` shortcut, or a `.webloc` file. Mac `.webloc` files have their own converter, [Webloc to URL](/convert/webloc-to-url/).

### Are my files uploaded?

No. The `.url` files and ZIPs are read by JavaScript in your browser tab, and the CSV is created there.

## Sources

- Microsoft, [[MS-SHLLINK]: Shell Link (.LNK) Binary File Format](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-shllink/16cb4ca1-9339-4d0c-a68d-bf1d6cc0f943).
- Microsoft, [Select-String](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/select-string).
- Microsoft Support, [Zip and unzip files](https://support.microsoft.com/en-us/windows/zip-and-unzip-files-8d28fa72-f2f9-712f-67df-f80cf89fd4e5).

## Next Steps

Convert your shortcuts with [Internet Shortcuts to CSV](/convert/internet-shortcuts-to-csv/). For links saved in a browser, export the bookmarks and use [Bookmarks HTML to CSV](/convert/bookmarks-html-to-csv/).
