Chromium Window Title Format
Customize how Edge and Chrome compose window titles - drop the browser suffix, restyle the tab count and profile, and rebuild the title from a template.
Author: mazany
Rewrites Microsoft Edge and Google Chrome window titles using a template you
control, so a window with many tabs is identifiable at a glance in Alt+Tab, the
taskbar and jump lists.

Taskbar previews before and after, on both browsers. The bottom row is the same
window list under two different templates - bold digits, and a superscript count
with the profile in italics.
Default title:
E-Mail and 16 more pages - Personal - Microsoft Edge
Some things you can ask for instead:
E-Mail and 16 more pages - Personal {title}?( {more})?( - {profile})
E-Mail and 16 more pages {title}?( {more})
[17] E-Mail ?([{count}] ){title}
17 E-Mail (bold digits) ?({count:bold} ){title}
03 E-Mail - Personal (superscript+italic) ?({count:pad2:sup} ){title}?( — {profile:italic})
How it works, and what it will not touch
The mod never guesses at English text. On startup it reads the browser's own
localized resource file to learn the exact browser suffix, the private-window
wording and the page-count wording for your language, then matches those
literals right-anchored against each title. The profile is matched against the
names the install actually has, rather than against punctuation - browsers do
not always join the profile with the same character they use elsewhere in the
title.
If a title does not match the grammar it discovered, the title is left exactly
as it is. That is a hard rule, not a setting, and it is what keeps the
following safe:
- app and installed-web-app (PWA) windows
- picture-in-picture, DevTools, print preview, task manager
- dialogs
- windows you named yourself with the browser's own "Name window" command
A window you named yourself is left alone for the same reason as the rest: its
title is only the name you gave it - no tab count, no page title, no profile -
so there is nothing in the text for a template to work from, and nothing that
distinguishes it from a dialog or an app window. Recognising those needs the
browser's own objects rather than its text, which is a separate feature and a
separate discussion.
Edge and Chrome are not equally capable
Chrome's window title contains only the page title and the browser name -
there is no tab count and no profile anywhere in it. That is a fact about
Chrome, not a limitation of the mod, so {extra}, {more}, {profile} and
{private} are always empty there and any ?( ... ) group containing only
those tokens disappears. {title} and {browser} work on both.
On Chrome, {count} is therefore empty too: the count is not in the title, and
this mod reads only the title.
Template syntax
| Token |
Meaning |
{title} |
Active tab title |
{more} |
The browser's own count phrase, e.g. and 16 more pages (Edge) |
{count} |
Total tabs, including the active one (Edge) |
{extra} |
Just the number from the count phrase (Edge) |
{profile} |
Profile name, or the privacy marker (Edge) |
{private} |
InPrivate / Guest without brackets, else empty (Edge) |
{browser} |
Browser name as it appears in the suffix |
Modifiers chain with : - {count:pad2:sup}, {profile:italic}.
- Numeric:
pad2, pad3 (zero-pad), min2 (empty unless 2 or more)
- Style:
sup, sub (digits only), bold, italic, bolditalic, sans,
serifbold, serifitalic, mono, script, fraktur, dbl
- Text:
upper, lower, trim, max<N>
?( ... ) drops the whole group, literal text included, when every token inside
is empty. Escapes: \{ \} \? \( \) \\ and \uXXXX.
A caution about the fancy letter styles
bold, italic and friends use Unicode mathematical alphanumerics. They look
great in the taskbar but they are not plain letters, which has real costs:
- Screen readers announce them character by character. The window's
accessibility name is the title you display, so styling
{title} degrades it.
- Alt+Tab type-to-search stops matching what you type.
- They need a font that covers the range. Superscript and subscript digits live
in Segoe UI itself and are safe; the mathematical letters come from Segoe UI
Symbol, so on a trimmed Windows image they can render as boxes.
- The italic, bold-italic, serif-italic, script and fraktur styles contain no
digits, so
digits pass through unstyled.
Style short prefixes like {count}, not {title}.
Limits worth knowing
-
If all you want is the browser name gone, Remove Taskbar Window Suffixes
is designed for exactly that and does it for every program at once, with far
less machinery. Its Universal mode drops the last - or — segment from
any title, and its custom regex rules can target msedge.exe or chrome.exe
and rewrite with capture groups - which covers dropping the suffix and a fair
amount of reordering too.
Two things are genuinely different here, and neither is a criticism of that
mod. It edits how a title appears on the taskbar, by its own description,
while this one changes the real window title - so Alt+Tab, the window's own
title bar and jump lists follow. And a regex matches text, whereas this mod
decomposes a title into named fields - page title, tab count, profile,
privacy marker - using the browser's own localized resources, so {count} is
a number you can style or pad and stays right in every language the browser
ships. If you want the suffix gone, use that mod. Use this one when you want
the parts.
-
Edge and Chrome only. The mod targets msedge.exe and chrome.exe. It
needs no symbols and no PDB, so it is not pinned to a particular browser
build, but other Chromium forks are not currently recognized and would each
need their own entry and browser-name hint.
-
{profile} is matched by name, never by position. A trailing segment is
removed only when it is exactly one of the profile names this install actually
has, read from the browser's own Local State. One profile is enough. The
cost of matching by name is a page genuinely titled Notes - Personal on an
install whose profile is Personal, whose tail moves into {profile}; the
alternative - stripping whatever follows the last separator - would truncate
every title containing a dash, so the name match is the floor.
Where the profile list cannot be read at all, nothing is stripped, and any
count sitting behind the profile is lost with it. The setting Guess the profile when the profile list cannot be read trades that back on weaker
evidence, and is off by default - its description says what it costs.
-
The profile list is read once, at startup. Add, rename or remove a profile
and {profile} keeps working from the old list until the browser restarts or
the mod is reloaded. This is deliberate: the list decides whether text is
removed from a title, so going stale is safer than re-reading it underneath a
composition in progress.
-
Titles are restored on unload on a best-effort budget. Each window gets
250 ms to acknowledge the restoring write, because the alternative is letting
one unresponsive window hang the uninstall. A window whose thread is busy at
that moment keeps the rewritten title until it next sets it itself. A window
that has changed its own title since is left alone rather than being handed a
now-older one. Both counts are logged.
-
The language is resolved in the browser's own order: --lang, then the
browser's stored UI language, then Windows' display-language list, then the
regional-format locale, then en-US. Each is matched against the packs the
browser actually ships, which are mostly bare language codes. Picking the
wrong one would make the mod appear to work and rewrite nothing, so the pack
that was read, every page-count form found in it, and the browser suffix that
actually matched a title are all logged to make that visible.
-
A UserDataDir group policy is read; a portable install still is not. The
policy is taken from HKLM and then HKCU under
SOFTWARE\Policies\Microsoft\Edge (Google\Chrome for Chrome), which is where
the browser reads it and it outranks --user-data-dir, so a managed machine
matches profile names normally. A policy path still holding a ${...} variable
that this mod cannot expand is treated as unknown rather than guessed at. What
remains unreadable - a portable or repacked install, a truncated Local State -
leaves {profile} empty and takes any count behind it, unless the guess setting
above is turned on.
-
A profile that has never been renamed may not be matched. A freshly created
profile can be shown under a localized default label - Personal,
Henkilökohtainen - that appears nowhere in Local State, which still records
the internal name. Once the profile has been used normally the browser writes
the displayed name and the match works. Nothing is mangled meanwhile; the
segment simply stays in {title}.