Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--start-maximized

What does --start-maximized do?

Starts the browser maximized, regardless of any previous settings.

Usage

CLILaunch Chrome with --start-maximized using CLI

chrome --start-maximized

PuppeteerLaunch Chrome with --start-maximized using Puppeteer

const browser = await puppeteer.launch({
  args: ['--start-maximized']
});

PlaywrightLaunch Chrome with --start-maximized using Playwright

const browser = await chromium.launch({
  args: ['--start-maximized']
});

SeleniumLaunch Chrome with --start-maximized using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--start-maximized')

driver = webdriver.Chrome(options=options)