How to Rename a Browser Window: Step-by-Step
In this article
You cannot rename a browser window in the sense of giving it a custom title like a document. The window title is generated automatically from the page's own title tag, and no mainstream browser (Chrome, Edge, Firefox, Safari, Opera, Vivaldi) exposes a setting to override it. What you can do is change the page title that the window displays, either by editing the page source, using a browser extension, or by using a bookmarklet that rewrites the title temporarily. This guide shows the working methods, what each one actually changes, and the common traps.
What You'll Need
- A desktop browser (Chrome, Edge, Firefox, or Safari). Mobile browsers do not support title-changing extensions or bookmarklets in the same way.
- For the extension method: access to the Chrome Web Store or Firefox Add-ons store, and permission to install extensions (some work or school devices block this).
- For the bookmarklet method: the ability to add a bookmark and edit its URL.
- For the source-edit method: a basic text editor and a local copy of the HTML file, or developer tools open on the page.
Step-by-Step
Method 1: Rename a window by changing the page title with a bookmarklet (no install)
- Open the page whose window title you want to change.
- Create a new bookmark in your browser (Ctrl+D on Windows/Linux, Cmd+D on Mac). Name it something like "Rename Title".
- Edit the bookmark and replace its URL with this JavaScript code:
javascript:document.title=prompt('New title:');void(0); - Save the bookmark. If your browser strips the
javascript:prefix when pasting, type the prefix manually after pasting the rest. - Go to the page you want to rename and click the bookmarklet. A prompt appears.
- Type the new title and press OK. The browser tab and window title update immediately.
- Note: this change lasts only until you reload or navigate away. It does not persist.
Method 2: Rename a window using a title-changing extension
- Open your browser's extension store (Chrome Web Store for Chrome and Edge, Firefox Add-ons for Firefox).
- Search for a title-changing extension. Several exist; choose one with recent updates and clear permissions.
- Install it and pin it to the toolbar if needed.
- Open the page you want to rename and click the extension icon.
- Enter the new title in the extension's field and apply it. The tab title changes.
- Check the extension's settings for options to make the change persist across reloads or apply to specific sites only.
Method 3: Rename a window by editing the page source (for pages you own)
- Open the HTML file in a text editor.
- Find the
<title>tag inside the<head>section. - Replace the text between the tags with your new title.
- Save the file and reload it in the browser. The window title now shows your text.
- If you are editing a live site, upload the changed file to your server and refresh.
Method 4: Temporarily rename a window using developer tools (any page)
- Open the page you want to rename.
- Open developer tools (F12 on Windows/Linux, Cmd+Option+I on Mac).
- Go to the Console tab.
- Type
document.title = "Your new title"and press Enter. - The tab and window title change until you reload or navigate away.
Common Mistakes
- Expecting the change to stick. Bookmarklet and console changes are temporary. Reloading the page resets the title to the original.
- Pasting bookmarklet code without the
javascript:prefix. Some browsers remove it for safety. Type it back in manually. - Using a mobile browser. Most mobile browsers do not run bookmarklets on normal pages, and extension support is limited. The methods here are for desktop.
- Editing the wrong
<title>tag. Pages can contain multiple title-like strings in scripts; only the one in the<head>controls the window title. - Installing an extension that asks for broad permissions. Title-changing extensions only need access to the current tab. If one requests access to all sites and data, reconsider.
Tips
- Use a short, descriptive title so the tab stays readable when many tabs are open.
- If you only need to tell windows apart, consider using separate browser profiles or windows instead of renaming titles.
- For pages you own, set a clear
<title>in the HTML; that is the only permanent way to control the window title. - Bookmarklets can be saved once and reused on any page.
Troubleshooting
If the bookmarklet does nothing, check that the bookmark URL still starts with javascript:. Some browsers block JavaScript in bookmarks on certain pages, such as browser settings pages or the new tab page. Try on a normal website.
If the extension does not change the title, make sure it is enabled for the current site and that the page has finished loading. Some extensions only act after a reload.
If developer tools refuse the command, confirm you are in the Console tab and not the Elements tab, and that the page is not a browser-internal page (like chrome://settings), where scripts are blocked.
If the title reverts immediately, the page's own scripts may be resetting it. In that case, only the source-edit method will give a permanent result.
Frequently Asked Questions
Can I rename a browser window permanently?
Only if you control the page's HTML and change its <title> tag. For pages you do not own, any change is temporary.
Does renaming the window change the tab title too?
Yes. The tab title and window title come from the same page title, so changing one changes the other.
Why does the title reset when I reload?
Because the browser reads the title from the page each time it loads. Bookmarklet and console changes are not saved anywhere.
Can I rename a window on my phone?
Not with these methods. Mobile browsers generally do not support bookmarklets or title-changing extensions on regular pages.
Is renaming a window the same as renaming a tab group?
No. Tab groups have their own naming feature in some browsers, but that labels the group, not the window title.
Will a title-changing extension affect other people?
No. It only changes what you see in your own browser.