Sub topic 5
Pinning sites you use every day
This chapter assumes you can open, switch, and close tabs, and that you know the keyboard shortcuts from the earlier chapters. It covers pinned tabs: what they are, how they behave differently from ordinary tabs, and the errors people commonly run into. Pinned tabs lead into tab groups, which come next in this tutorial.
What a pinned tab is
A pinned tab is a small tab fixed at the left end of the tab bar. It shows only the site's icon, not its title, so it takes very little room. Pinned tabs are meant for sites you open every day, such as email, a calendar, or a chat service.
A pinned tab differs from an ordinary tab in four ways:
- It stays at the left of the tab bar, ahead of all ordinary tabs.
- It is narrow and shows an icon instead of a title.
- It is tied to its site. Links that go to a different website open in a new ordinary tab, so the pinned tab keeps showing the site you pinned.
- It is hard to close by accident. Safari has no close button on a pinned tab, and the keyboard shortcut to close a tab needs care (see the section on closing).
Pinning and unpinning
You can pin a tab in any of these ways:
- Drag the tab to the left end of the tab bar until it shrinks to an icon.
- Control-click the tab (or right-click it) and choose Pin Tab.
- Control-click a tab in the sidebar and choose Pin Tab.
To remove the pin, Control-click the pinned tab and choose Unpin Tab. You can also drag the tab out to the right, past the other pinned tabs. An unpinned tab becomes an ordinary tab again and shows its title.
You can reorder pinned tabs by dragging them left or right. Pinned tabs cannot be dragged into the middle of the ordinary tabs, because pinned tabs always come first.
How a pinned tab behaves
Same-site and cross-site navigation
A pinned tab is meant to stay on the site you pinned. You can navigate within that site normally. Clicking a link inside a pinned mail page, for example, moves the pinned tab to another page of the same site.
When a link leads to a different domain, Safari opens it in a new tab instead of replacing the pinned page. This protects the pin, but it surprises people who expected the pinned tab to follow the link. If you really want the pinned tab to go somewhere else, type a new address into the Smart Search field. That changes the page shown in the pinned tab.
Pinned tabs and the home page
A pinned tab remembers the address you pinned. After you have wandered around within the site, you can return to the pinned address. Control-click the pinned tab and look for the option to go back to the pinned page. If the menu does not offer it in your macOS version, you can simply click the site's own logo or home link.
Pinned tabs are not the same as bookmarks
A bookmark is a saved address that you open when you want it. A pinned tab is an open page that sits in your window and stays loaded. This is a practical difference:
| Feature | Pinned tab | Bookmark |
|---|---|---|
| Always visible in the tab bar | Yes | No |
| Uses memory while open | Yes | No |
| Stays live (for example, new mail) | Yes | No |
| Works after you quit Safari | Reopens with Safari | Always saved |
Pin sites that you want running in the background. Bookmark sites you visit now and then.
Pinned tabs across windows
Pinned tabs belong to the browsing context where you made them. In practice this means three things:
- When you open a new window, the pins from your existing windows appear in it as well. Safari treats them as the same set of pinned sites.
- If you use tab groups, pins can be kept in a tab group rather than shared by every window. Safari 17 and later keeps a pinned set for each profile and, in some cases, for each tab group.
- A pin you add in one profile does not appear in another profile. Profiles are covered later in this tutorial.
Because this behavior has changed between Safari versions, test it on your own Mac. Pin a site, open a new window, and look at the left end of the tab bar.
Closing, quitting, and restoring
Pinned tabs are designed to survive. Here is what happens in each case:
- Closing the window. Closing a window does not delete your pinned sites. They appear again when you open a new window.
- Closing a pinned tab. Control-click a pinned tab and choose Close Tab to close it. This removes the pin as well.
- Quitting Safari. Pinned tabs return the next time you open Safari, because Safari saves them with the rest of your session.
- Reopening a closed tab. If you close a pinned tab by mistake, press Command-Z or choose History > Reopen Last Closed Tab to restore it.
A common mistake is pressing Command-W on a pinned tab and assuming nothing happened because the tab looks different. Check the tab bar. If the pin has gone, reopen it from the History menu and pin it again if needed.
Common errors and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| A link from a pinned tab opens a new tab | The link goes to a different website | This is expected. Type a new address in the Smart Search field if you want to change the pinned page. |
| The pinned tab shows an old page | The page was loaded long ago and not refreshed | Press Command-R to reload. |
| A pin is missing in a new window | You are in another profile or tab group | Switch to the profile or group where you made the pin. |
| The icon is a plain letter or globe | The site has not supplied an icon yet | Reload the page. Some sites provide an icon only after a full load. |
| Too many pins and the bar is crowded | Pinning sites you do not use daily | Unpin the rarely used ones and bookmark them instead. |
Choosing what to pin
Pinned tabs work best when the list is short. A reasonable rule is to pin a site only if you open it at least once a day and want it to stay loaded. A good pinned set might hold your email, your calendar, a messaging app, and a task list. Five to seven pins fit comfortably in the tab bar on a laptop screen.
Avoid pinning:
- Pages that need a long form filled out, since a pin makes it easy to lose your place.
- Sites that you only visit during a short project. Use a tab group for these instead.
- Pages with sensitive information on a shared Mac. A pinned page stays open and visible.
Pinning from the command line
You do not need Terminal to pin tabs, and Safari has no standard command for pinning. You can still open a site in Safari from Terminal and then pin it by hand:
open -a Safari https://www.apple.comAfter the page opens, Control-click its tab and choose Pin Tab. To check which tabs are open, including pinned ones, you can list them with AppleScript:
tell application "Safari"
get name of every tab of front window
end tellThe first time this runs, macOS may ask you to allow automation access. Pinned tabs appear in this list along with ordinary tabs, so the list does not tell you which ones are pinned.
Summary of key points
- A pinned tab is a small, icon-only tab at the left of the tab bar.
- Pin with a drag or with Control-click and Pin Tab. Unpin with Unpin Tab.
- Links to other websites open in a new tab, so the pin stays on its site.
- Pins differ from bookmarks because they stay open and loaded.
- Keep the pinned set short, and use tab groups for project-based tabs.
Exercise
You pinned your email site. You click a link in an email that goes to an unrelated website. What does Safari do, and how would you make the pinned tab itself show a different site if you wanted that?
Show answer
Safari opens the link in a new ordinary tab and leaves the pinned tab on your email site, because the link goes to a different domain. To change the pinned tab itself, type the new address into the Smart Search field while the pinned tab is selected.
Exercise
Name two differences between a pinned tab and a bookmark, and say which one you would use for a news site you read once a week.
Show answer
A pinned tab stays visible in the tab bar and stays loaded in memory, while a bookmark is only a saved address and uses nothing until you open it. For a news site you read once a week, use a bookmark.
Exercise
You accidentally closed a pinned calendar tab with Command-W. How can you get it back?
Show answer
Choose History > Reopen Last Closed Tab, or press Command-Z right after closing it. Then pin the tab again if the pin was not restored.