I needed to convert an Apple .webloc file to a .url file. This nifty app did the trick: https://github.com/anonymousaga/webloc-to-url-mac-app. The reason I needed to convert is because Microsoft OneDrive rejects .webloc files but will allow .url files. See below description of the file.
A WEBLOC file is a shortcut file on macOS that points to a web URL on internet. It is generated by dragging the web URL from browser’s address bar to desktop or any other folder where it is meant to be saved. The URL to destination site is stored inside this shortcut file and can be viewed by opening the file in a text editor such as Microsoft Notepad, Notepad++, or Apple TextEdit. WEBLOC files are similar to the URL files. A .WEBLOC file is an Apple Finder Internet Location file.
A WEBLOC file is a shortcut file on macOS that points to a web URL on internet. It is generated by dragging the web URL from browser’s address bar to desktop or any other folder where it is meant to be saved. The URL to destination site is stored inside this shortcut file and can be viewed by opening the file in a text editor such as Microsoft Notepad, Notepad++, or Apple TextEdit. WEBLOC files are similar to the URL files. A .WEBLOC file is an Apple Finder Internet Location file.