Webloc File on Mac

Creating browser bookmarks is a great way to save time—but you can go a step further. With a webloc file, you can open web pages like they’re apps or documents on your Mac. You can even add them to your Dock for extra-fast access. Got ads on a page? Block those ads and online trackers with MacKeeper’s StopAd.

System Requirements: macOS 10.11 or later

More than 60 Million Downloads

i

AV-TEST certified

i

Notarized by Apple

i

AV-TEST is an independent lab that checks the effectiveness of antivirus apps against real malware samples.

The notarization by Apple is a security measure to check if software is free from malicious components.

Trustpilot is an independent digital platform that hosts insightful and honest consumer reviews.

Webloc File on Mac
Written By   Yana Khodun
Published: August 19, 2026

What is a webloc file on Mac?

A webloc file is essentially a hyperlink, in the form of a launchable file. The name ‘webloc’ is short for ‘web location’, because that’s what webloc files contain—the URL of a particular site, stored in an XML file. You can launch weblocs from your desktop or move files like this wherever you want.

 

Why create webloc files on Mac, though? It’s primarily a time-saving thing. Yes, you can bookmark web pages in your web browser, which creates shortcuts in that particular app, but webloc files offer something more.  

 

When you make a webloc file, you can go directly to a page, without having to open your browser. That saves you a click.  

 

You can also open webloc files in any browser, unlike browser bookmarks, which are usually tied to a particular browser.  

A note from our experts: 

 

Saving a web page as a webloc is handy, but what if that is filled with ads, trackers, and annoying notifications? Block them with MacKeeper’s StopAd. Here’s how it works with Safari:

  1. Download and run MacKeeper.
  2. Select StopAd from the side menu on the left.  
  3. If the Safari extension isn’t enabled, click Enable.  
  4. In Safari, click the MacKeeper icon to open StopAd and check that it’s running on the current web page.  
With MacKeeper's StopAd tool, you can prevent annoying ads and notifications from loading. You can also stop online trackers from following you around the internet.
Step 1. Select StopAd, and make sure the Safari extension is enabled
Once you've installed MacKeeper's StopAd, go into to Safari and click the StopAd icon. You should see You're protected. You can also turn off StopAd from here, if you want to disable ad blocking on a particular site.
Step 2. In Safari, you can now select StopAd, and turn it on and off

How to create a webloc file on Mac?

Got a favourite site in mind for your first webloc file? Great! Creating a webloc file is quick and easy, and there are a couple of different ways to do it.  

 

The first (and simplest) method is a drag-and-drop, like this:

  1. Open any web browser on your Mac.  
  2. Visit the page you want to save into a webloc page.  
  3. Click in the URL bar of your browser, and it should automatically select the URL.  
  4. Click and drag the web address, and you should see a green plus icon. If it doesn’t work, try clicking and dragging the site’s icon in the URL bar.  
  5. Drop the web address on your desktop or in a Finder window.  
  6. Your webloc file should now be ready, named after the URL of the web page.  
To create a webloc file, all you need to do is drag and drop. Open your browser, navigate to the site you want to save, then click and drag the URL from the web address bar onto your desktop or a Finder window.
Step 1. Drag and drop the URL from your browser
That's all there is to it. Your webloc file is now ready for you to launch. Simply double-click the file, and it will open the saved web page in your default web browser. If the browser isn't open, it will open that too.
Step 2. Your webloc file is now ready to use

Easy, right? But we also have a manual method. You can simply use a text template to create a brand new webloc file. Here’s how:

  1. Open your Mac’s built-in TextEdit app.  
  2. Copy and paste the command we’ll show you on the screenshot below, changing the example URL to whatever you want.
  3. It’s important to convert this copy to plain text. From the menu bar, select Format > Make Plain Text.
  4. Click OK.
  5. Press Cmd + S. Name the file, adding .webloc at the end. Click Save.  
  6. In the pop-up, click Use .webloc.
  7. Now just open it like any other webloc file.
If you want to manually create webloc files, you can do that too. Start by copying and pasting our template text into a new TextEdit file, replacing the example URL with the one you want to save.
Step 1. Paste the template text into TextEdit, and change the example URL
Your webloc file will need to plain text for this to work. If you save in any other format, your webloc file won't work. Select Format > Make Plain Text from the menu bar in TextEdit, then click the 'OK' button.
Step 2. Convert the copy to plain text
Now it's time to save your file. For now, you're saving it as a plain text file. Give the file a name, adding the .webloc extension. use the 'Where' dropdown menu to select a location, and click the 'Save' button.
Step 3. Name the file, and click Save
Now confirm that you want to save your file with the .webloc extension. This will tell your Mac that you want to treat the file as a web page shortcut, and that it should open the file in a web browser.
Step 4. Confirm that you want to change the file type to webloc

An extra hint from us: 

 

Webloc files are tiny, but if you do have other files you want to shrink, read our guide on how to make files smaller. In this guide, we look at everything from zipping up files to using a converter app to compress video files.  

How to open a webloc file on Mac

Once you’ve created a webloc file, simply double-click it to open it, and the relevant page will load in your default web browser, even if that browser wasn’t already running. If you already have the page open in your browser, macOS will simply take you to that browser tab.  

 

What if you want to open webloc files in a different browser? You could change your default browser, but we have a simpler method:  

  1. Right-click a webloc file.  
  2. Select Open With, and then select a web browser.  
  3. The webloc file will now open in that browser.  
By default, webloc files will open in your default web browser. If you want to open them in a different browser, you can do so at any time. All you have to do is right-click a webloc file and select
You can open a webloc in any browser of your choice

You can also quickly view a webloc file simply by selecting it and pressing your Spacebar. This brings up a cached image of the web page in question, without you having to open a browser—handy if you have a lot of webloc files to look through.  

 

Accidentally deleted a webloc file or other data? Check out our tips on how to recover overwritten files.  

How to add a webloc file to your Dock?

Once you’ve made a webloc file, you can add it to your Dock for even more convenient access. All you have to do is drag and drop your webloc file on the right-hand side of your Dock. It won’t fit anywhere else in the Dock, because those parts are reserved for apps.  

 

To launch your webloc from the Dock, simply click its icon once—saving you yet another click!

As well as opening your webloc files from your desktop and Finder, you can add them to your Dock, then launch them from there. Simply drag and drop your webloc file to the far-right section of your Dock.
Drag and drop a webloc file to your Dock for even quicker access

How to view webloc files on Mac?

Once you’ve created a webloc file, how do you view the text in the file and make changes to it? You can’t just double-click like other files, because that will open the linked web page in your browser.  

 

You have two options:

  1. Drag and drop the webloc file onto the TextEdit icon in your Dock.  
  2. Right-click the webloc file, and select Open With > Other > TextEdit.  

From there, you can see exactly what text is in the webloc file, and you can make whatever edits you want. However, we don’t recommend changing anything other than the URL. Otherwise, if you don’t know what you’re doing here, you risk breaking the functionality of the webloc file.  

 

Created lots of webloc files and not sure how to handle them all? We hear you. We’ve looked at some of the best file managers for Apple Mac users—whether you’ve got an iMac, Mac mini, or MacBook, check it out.  

At some time, you may to look at the underlying content of your webloc file. To do so, simply open it in TextEdit. From there, you'll be able to read the content and even make changes if you want to.
Open a webloc file in TextEdit to view the text and make changes

Transform your browsing experience

Webloc files provide a quick and easy way to navigate to your favorite websites. They’re particularly useful if you have to visit a particular page every day. In most situations, we recommend just clicking and dragging the URL of the page from your browser to your desktop. Not only is this the simplest way of creating webloc files, but it will also create the name of the file for you, saving you a bit of typing.  

 

If you’d rather use a manual method, then the webloc template we provided will do the trick, too. Just make sure you save it as a plain text file to avoid file type compatibility issues.  

 

Whichever method you use, don’t let your web browsing experience get spoiled by annoying ads, intrusive online trackers, and irritating notifications. With MacKeeper’s StopAd, you can block all of them in Safari and Chrome, protecting your privacy and making browsing smoother. Give it a try today.  

Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.

Contents

Unlocked
PC

MacKeeper - your all-in-one solution for more space and maximum security.

Try Now

Read more

Uninstall Soundflower Mac
Uninstall Soundflower Mac
How to Update Mac: Upgrade macOS Step-By-Step
How to Update Mac: Upgrade macOS Step-By-Step
arrow

Run Application

step_1

Click Continue

step_2

Click Install

step_1

Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.