# How to create cross-compatible website shortcut for Mac & Windows

Mac creates shortcuts with `.webloc` extension while Windows creates it using `.url` extension. Let's see how to create both and how to make it work on both operating system. 

## Creating Website Shortcut in Mac

You can create shortcut by dragging the website URL to your finder folder or desktop using a Mac device. But if you are not on mac, you can create it manually. 


### 1. Create a file with `.webloc` extension. 

And add the following contents inside. Make sure to change the URL inside `<string>`

```html
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>URL</key>
	<string>https://yourwebsite.com</string>
</dict>
</plist>
```

Note: This only works on Mac and on windows this won't work. To create a shortcut compatible for both operating system, follow this steps:

## Creating Website Shortcut in Windows

You can create shortcut by dragging the website URL to your finder folder or desktop using a Windows device. But if you are not on Windows, you can create it manually. 


### 1. Create a file with `.url` extension. 

```xml
[InternetShortcut]
URL=https://yourwebsite.com
```

The above shortcut will work on both Windows & Mac. 
