Hostname-based grouping for Chrome tabs

Group Chrome tab groups

Group tabs by domain in Chrome by comparing hostnames, not full URL paths or brand names. Treat each normal browser window as a separate workspace: pages with the same exact hostname can belong together inside one window, while subdomains, pinned tabs, and unrelated sites remain outside unless you deliberately choose another rule.

See how the preview separates shop.example.com from docs.example.com before any tabs change

Start with the hostname

Parse each URL into two useful parts: hostname and path. For example, in https://shop.example.com/orders/42, the hostname is shop.example.com and the path is /orders/42. Two pages can have different paths and still match because their hostnames are identical.

Do not use the visible page title as the grouping key. A store, documentation portal, and account service may share example.com in their names while using different hosts. shop.example.com and docs.example.com are related subdomains, but they are not exact-host matches. Treat them as different sites unless you have explicitly decided to combine them.

Resolve a same-host example

Consider this illustrative Chrome tab set in one normal window:

  • https://shop.example.com/products
  • https://shop.example.com/cart
  • https://docs.example.com/setup
  • https://news.example.net/story
  • A pinned tab for https://mail.example.com

The two shop.example.com pages are membership matches. Their paths differ, but their hostnames are the same, so they can form one site group. The documentation page is excluded from that group because docs.example.com is a different exact hostname. It may deserve its own group only if you select it and accept a single-tab group or later add another documentation tab.

The news page is unrelated and stays outside. The pinned mail tab also stays separate. Pinning is a layout exception, not evidence that the tab matches another domain. A grouping decision should record these exclusions rather than silently pulling every page with a similar company name into one group.

Repeat the decision per window

Suppose another normal Chrome window also contains two pages on shop.example.com. Group those tabs in that second window independently. The result is two separate browser groups, one in each window; tabs do not move between windows merely because their hostnames match.

This window boundary matters when one window contains active work and another contains reference material. A hostname match answers “which tabs belong together here?” It does not answer “which tabs should be moved into a different window?” Keep those decisions separate.

Check which tabs land in the Will stay ungrouped column, including pinned mail and unrelated news pages

Review groups before applying them

Group Tabs by Site can show a preview of proposed hostname groups before changing live tabs. Select the normal window or windows to organize, inspect each proposed group, and compare entries such as shop.example.com and docs.example.com directly. The preview also identifies pinned, excluded, and already-grouped tabs that will stay ungrouped.

Use this checklist:

  1. Confirm hostname, ignoring URL path when deciding exact-host membership.
  2. Separate exact hosts from subdomains and unrelated domains.
  3. Decide whether one-tab sites should remain ungrouped.
  4. Keep pinned tabs outside the proposed groups.
  5. Check each selected normal window independently.
  6. Apply only after proposed membership matches your intent.

The tool uses exact hostnames by default and does not treat a shared brand name as a match. Existing groups remain unchanged unless you explicitly choose to add tabs to one in the same window. Private windows are excluded, and the tool does not rename, hide, auto-trigger, or save tabs.

What the example produces

For the example, the proposed shop.example.com group contains the products and cart pages. The documentation, news, and pinned mail tabs remain unchanged. If the same review is performed in a second normal window, its shop.example.com tabs receive an independent result rather than joining the first window’s group.

Inspect the preview after selecting sites, then choose “Group tabs” only when membership is correct. This hostname-first check prevents a common mistake: grouping pages because they look related while overlooking the exact host that Chrome uses as the boundary.

How To Add Tab Groups In Chrome

How To Collapse Tab Groups In Chrome

How To Create Chrome Tab Groups

Apply grouping per selected normal window and undo conflicts if tabs moved since the preview

FAQ

Can Group Tabs by Site combine subdomains into one group?

No. By default the tool uses exact hostnames, so shop.example.com and docs.example.com are treated as different sites. Combining subdomains requires a separate explicit rule; sharing a brand name is not enough.

What happens to pinned tabs when grouping by hostname?

Pinned tabs stay outside the proposed groups. Pinning is a layout exception, not evidence that a tab matches another domain, so they appear in the Will stay ungrouped column.

If I have the same site open in two Chrome windows, does it merge them?

No. Each normal window is handled independently. Two matching hostnames in separate windows produce two separate browser groups; tabs never move between windows just because their hostnames match.

Should I group sites that only have one tab open?

It depends. You can decide whether single-tab sites stay separate before applying. A one-tab group may be useful if you expect more tabs from that site later, otherwise leaving it ungrouped keeps the tab bar cleaner.

Are private browsing windows included in grouping?

No. Private windows are excluded from the grouping operation. Only tabs in selected normal windows are considered.