Why convert WEBLOC to TXT?
Windows and Linux have no native handler for .webloc files; reading the raw text is the practical way to extract the URL for pasting into documents or sharing cross-platform as a .txt file.
How to convert WEBLOC to TXT
Rename to .txt FREE
Locate the .webloc file in File Explorer or Finder, rename the extension to .txt, then open in any text editor and read the URL from the <string> tag.
Notepad / Notepad++ FREE
Right-click the .webloc and choose Open with Notepad or Notepad++; the XML content appears immediately and the URL is visible between the <string> tags.
TextEdit FREE
Right-click the .webloc, choose Open With > TextEdit, then go to Format > Make Plain Text; the stored URL is visible between the <string> tags.
About these formats
A .webloc file is a macOS internet shortcut that stores one website address. On a Mac, double-click it and the URL opens in your default browser. On Windows there is no built-in handler,…
Open .WEBLOC details →A TXT file is plain, unformatted text - the simplest document format on any computer. Double-click it: Windows opens it in Notepad, macOS in TextEdit, Linux in gedit. Nothing to install. If…
Open .TXT details →Quality & what to watch
- A
.weblocholds only a URL - not the web page itself; the.txtoutput contains the link address, not any page content. - Binary plist
.weblocfiles (created by dragging links in Chrome or Firefox) start withbplist00; a text editor shows garbled content for these - on a Mac, runplutil -convert xml1 file.weblocfirst. - Very old
.weblocfiles stored the URL in the HFS+ resource fork; when copied to Windows or Linux, the resource fork is stripped and the file may appear as 0 bytes with no recoverable URL.
Frequently asked questions
Can I just rename `.webloc` to `.txt`?
.webloc files - the content is already readable text, so renaming works fine.Is any data lost?
.webloc is the URL, and that URL is preserved as-is in the .txt file.What if the file opens as garbled characters?
plutil -convert xml1 file.webloc to convert it to readable XML first.