Tutorial10 min read

Is Playwright Free? What It Is and What It Costs

Short answer

Yes: Playwright is free, including for commercial projects. Microsoft releases it as open source under the Apache License 2.0 (SPDX identifier Apache-2.0, the license value in Playwright's package.json), so the libraries for JavaScript/TypeScript, Python, Java and .NET, the test runner and its tools cost nothing: there is no paid tier and no per-user, per-test or revenue-based fee. The only paid Playwright product is optional and separate: Playwright Workspaces in Microsoft's Azure App Testing, which runs your tests on cloud browsers billed per minute. ProxyField's residential proxies plug into Playwright's proxy option, with 412M+ IPs in 195+ countries from $1.95/GB; start with the Easy Trial: 1 GB for $2.95.

residential IPs
412M+
from, traffic never expires
$1.95/GB
Easy Trial
1 GB for $2.95
On this page 10 sections
  1. Is Playwright free?
  2. What is Playwright?
  3. What is playwright.dev?
  4. What does Playwright do?
  5. How Playwright works
  6. Is Playwright based on Selenium?
  7. Playwright for Java: the Maven dependency
  8. Advantages and limits of Playwright
  9. Playwright with proxies
  10. Is Playwright Free? What It Is and What It Costs FAQ

Is Playwright free?

Yes. The license file in the repository is the Apache License, Version 2.0 (January 2004), with the lines "Portions Copyright (c) Microsoft Corporation" and "Portions Copyright 2017 Google Inc." (LICENSE on GitHub). Apache 2.0 lets anyone use, copy, modify and redistribute the code, in personal and commercial projects, without paying. The npm package declares the same license in a machine-readable form; check it in one command:

Shell
npm view playwright license
# Apache-2.0

What Playwright costs:

PartCostTerms
Playwright libraries for Node.js, Python, Java and .NET$0Apache License 2.0
Playwright Test runner, codegen, Inspector, Trace Viewer, UI Mode$0Apache License 2.0
The browser builds Playwright downloads (Chromium, Firefox, WebKit)$0free of charge; each browser keeps its own open-source license
Playwright Workspaces in Azure App Testing (optional)$0.01 per test minute on Linux cloud browsers and $0.02 on Windows (US East and West Europe; some regions charge more, such as $0.0145 and $0.029 in Australia East), billed by the second; a 30-day trial includes the first 100 test minutes at no chargeAzure App Testing pricing; rates from the Azure Retail Prices API
Your own machines or CI minuteswhat your host charges–
Proxy traffic, if you scrape through proxiesProxyField: $2.95/GB for 1 GB down to $1.95/GB from 1,000 GBno subscription; pricing

You never need the Azure service to use Playwright: the same tests run on your laptop, your own servers or any CI. Microsoft sells it to finish a large suite faster on many hosted browsers.

What Apache 2.0 asks of you

  • Using Playwright in your company, your CI or a product you run yourself: nothing to pay and nothing to file.
  • Redistributing Playwright or a modified copy (for example inside a product or image you give to others), Section 4 asks you to:
    1. give recipients a copy of the license;
    2. mark the files you changed with a prominent notice;
    3. keep the copyright, patent, trademark and attribution notices in the source;
    4. include the attribution notices of a NOTICE file, if the distribution has one.
  • Patents (Section 3): the license grants a patent license, which ends for you if you sue claiming that Playwright infringes a patent.
  • Trademarks (Section 6): the license does not let you use Microsoft's or Playwright's names as your own product names.
  • No warranty (Sections 7 and 8): the code comes "as is", without warranty or liability.

What is Playwright?

Playwright is a browser automation library: your code tells a real browser to open pages, click, type, wait for elements and read content, the way a user would. Microsoft released version 1.0 on 6 May 2020 (release v1.0.0), and it is developed in the open at github.com/microsoft/playwright.

FeaturePlaywright
Made byMicrosoft (open source, Apache 2.0)
LanguagesJavaScript/TypeScript, Python, Java, .NET (C#)
BrowsersChromium (including Chrome and Edge), Firefox, WebKit (the engine behind Safari)
Operating systemsWindows, macOS, Linux; headless or with a visible window
Main usesEnd-to-end testing, browser automation, web scraping, screenshots and PDFs
Built-in toolsTest runner (Node.js), codegen recorder, Inspector, Trace Viewer, UI Mode
Price$0; the optional cloud browsers in Azure cost $0.01 (Linux) or $0.02 (Windows) per test minute in US East

What makes it popular: it waits for elements automatically before acting on them, it isolates sessions in light browser contexts (each with its own cookies, storage and proxy), and it can watch, block or change network requests.

What is playwright.dev?

playwright.dev is the official website of Playwright: the documentation, API reference, guides and release notes, with a version of the docs for each language (playwright.dev/python, playwright.dev/java, playwright.dev/dotnet). It is maintained by the Playwright team at Microsoft, and it is where install commands and the current version are published.

What does Playwright do?

  • Testing. Playwright Test runs end-to-end tests in parallel across Chromium, Firefox and WebKit, with assertions that retry until a condition is met, screenshots and videos on failure, and a trace you can replay step by step.
  • Automation. Filling forms, downloading files, logging in to your own accounts, generating screenshots and PDFs of pages.
  • Web scraping. Loading pages that build their content with JavaScript, scrolling feeds, clicking "Load more", and reading the rendered data or the JSON the page fetches. The how-to is in web scraping with Playwright.

A minimal script in Python, all of it free to install and run:

Python
# pip install playwright && playwright install chromium
from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch()
    page = browser.new_page()
    page.goto("https://playwright.dev/")
    print(page.title())
    browser.close()

How Playwright works

Playwright does not use the WebDriver protocol. Each library talks to a Playwright driver, which keeps one connection to the browser and speaks the browser's own protocol: the Chrome DevTools Protocol for Chromium, and protocols in Playwright's own builds of Firefox and WebKit. Because the browser reports events (a request sent, an element added), Playwright can wait for the page instead of polling, and can see and change network traffic. This is also why Playwright installs its own browser builds: each release is tested against specific browser versions.

Is Playwright based on Selenium?

No. Playwright is a separate project with its own architecture; it shares no code with Selenium and does not use WebDriver or browser drivers such as chromedriver. Both automate real browsers and both have Python, Java, .NET and JavaScript bindings, which is why they are compared so often.

FeaturePlaywrightSelenium
ProtocolBrowser protocols through Playwright's driverW3C WebDriver (plus WebDriver BiDi) through browser drivers
WaitingAutomatic before every actionExplicit waits you write
LanguagesJS/TS, Python, Java, .NETJava, Python, C#, Ruby, JavaScript
BrowsersChromium, Firefox, WebKit buildsChrome, Firefox, Edge, Safari (the real browsers)
Network interceptionBuilt inThrough BiDi or add-ons
Parallel runs at scaleTest runner workers, or your own poolSelenium Grid
LicenseApache 2.0, $0Apache 2.0, $0

When to use Playwright over Selenium: a new project in one of its four languages, pages that need reliable waiting, or a scraper that needs network control. When to keep Selenium: an existing suite or Grid, Ruby, or testing on the branded Safari through Apple's driver. More on Selenium in what Selenium is.

Playwright for Java: the Maven dependency

In Java, Playwright is one Maven artifact, com.microsoft.playwright:playwright, free from Maven Central like the other languages' packages. The latest release on 21 October 2026 was 1.64.0 (Maven Central metadata); check it or playwright.dev/java for the current release before you pin it.

XML
<dependency>
  <groupId>com.microsoft.playwright</groupId>
  <artifactId>playwright</artifactId>
  <version>1.64.0</version>
</dependency>

The first run downloads the browsers; on a CI server, run mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install" to install them ahead of time.

Advantages and limits of Playwright

Advantages:

  • Free under Apache 2.0, with no paid tier of the library.
  • Auto-waiting and web-first assertions remove most flaky waits.
  • Three browser engines and four languages from one API.
  • Browser contexts make parallel, isolated sessions light on memory.
  • Network interception, tracing and codegen are built in.

Limits:

  • WebKit is Playwright's build of the engine, not the branded Safari app, and mobile devices are emulated, not real phones.
  • The full test runner is for Node.js; Python uses the pytest plugin, Java and .NET use their own test frameworks.
  • No official Ruby or PHP bindings.
  • A browser per job is heavy compared with a plain HTTP request, so scrapers should use it only for pages that need JavaScript.

Playwright with proxies

Playwright takes a proxy as an option with the server, username and password as separate fields, for the whole browser or per browser context, which lets each context exit from a different country. ProxyField's gateway is gate.proxyfield.io:7000, with HTTP, HTTPS and SOCKS5, country, region and city targeting, and a new IP per request or a sticky session from 30 s to 36 h. Code for Python and Node.js is in the Playwright proxy setup guide. Residential traffic costs $2.95/GB for 1 GB down to $1.95/GB from 1,000 GB, with no subscription, and the traffic never expires (residential and mobile proxy pricing).

Is Playwright Free? What It Is and What It Costs FAQ

Is Playwright free?

ProxyField checked the license: yes, Playwright is free under the Apache License 2.0, including its libraries, test runner, tools and the browser builds it downloads. There is no paid tier of Playwright itself. Your costs are the machines that run the browsers and, only if you choose it, Microsoft's cloud browsers in Azure.

Can I use Playwright in a commercial project, or are there paid plans or license limits?

Yes, you can use it commercially at no cost: Apache 2.0 has no per-user, per-test or revenue limit. The only conditions apply when you redistribute Playwright or a modified copy: pass on the license, mark changed files and keep the copyright, attribution and NOTICE texts. The paid option is Playwright Workspaces in Azure App Testing, billed per minute of cloud browser time.

What license is Playwright under?

The Apache License, Version 2.0 (January 2004), SPDX identifier Apache-2.0, in the LICENSE file of github.com/microsoft/playwright, with "Portions Copyright (c) Microsoft Corporation" and "Portions Copyright 2017 Google Inc." It grants copyright and patent licenses for any use, and it does not grant use of Microsoft's trademarks.

Do I have to pay for Playwright's cloud testing service?

Only if you choose to use it. Playwright Workspaces in Azure App Testing runs tests on cloud browsers for $0.01 per test minute on Linux and $0.02 on Windows in US East and West Europe, and a 30-day trial includes the first 100 test minutes at no charge. The same tests run on your own machines or CI for free.

Is Playwright free for web scraping and CI at scale?

Yes. The license sets no limit on runs, browsers, workers or machines, so a scraper or a CI suite of any size pays nothing for Playwright itself. Your costs are the host or CI minutes that run the browsers and, if you scrape through proxies, the traffic: ProxyField residential proxies cost $2.95/GB for 1 GB down to $1.95/GB from 1,000 GB, with no subscription.

Can I use free proxies with Playwright?

Playwright accepts any HTTP, HTTPS or SOCKS5 proxy in its proxy option, so a public proxy list works technically. Those proxies are shared, slow and often already blocked, and their unknown operators can read traffic that is not encrypted. A paid pool costs little to test: ProxyField starts at 1 GB for $2.95 with no subscription, and the setup is in the Playwright proxy guide.

Is Playwright obsolete?

No. Microsoft still develops it in the open and ships regular releases: the Java package reached 1.64.0 on 21 October 2026, more than six years after version 1.0 (6 May 2020). Check the current release on playwright.dev or Maven Central before you pin a version.

What is Playwright?

An open-source library from Microsoft that automates Chromium, Firefox and WebKit browsers from JavaScript/TypeScript, Python, Java or .NET. Teams use it for end-to-end tests, browser automation and scraping pages that need JavaScript.

Is Playwright based on Selenium?

No. Playwright shares no code with Selenium and does not use WebDriver or drivers like chromedriver; it talks to browsers over their own protocols through its own driver. The two are compared often because both automate real browsers in several languages.

What is playwright.dev?

The official Playwright website, run by the Playwright team at Microsoft. It hosts the documentation, API reference, guides and release notes, with separate docs for Node.js, Python, Java and .NET.

Show 6 more questionsShow fewer questions

How do I add Playwright to a Maven project?

Add the dependency com.microsoft.playwright:playwright to your pom.xml; the latest release on 21 October 2026 was 1.64.0, and Maven Central or playwright.dev/java shows the current one. The browsers download on first run, or ahead of time with the Playwright CLI's install command.

What are the advantages of Playwright?

Playwright waits automatically before actions and offers one API for Chromium, Firefox and WebKit in four languages. It also has light, isolated browser contexts for parallel sessions, and built-in network interception, tracing and a code recorder.

What are the disadvantages of Playwright?

Its WebKit is not the branded Safari app, mobile devices are emulated, and the full test runner is Node.js-only. There are no official Ruby or PHP bindings, and a browser per job is heavy compared with plain HTTP requests.

Does Playwright have a UI?

Yes, as developer tools: UI Mode (npx playwright test --ui) to run and watch tests, the Inspector to step through a script, the Trace Viewer to replay a run, and codegen to record clicks into code. Scripts themselves run headless by default or with a visible browser window.

When should you use Playwright over Selenium?

For a new project in JavaScript/TypeScript, Python, Java or .NET, for pages where reliable automatic waiting matters, and for scrapers that need to block or read network requests. Keep Selenium for an existing suite or Grid, Ruby, or tests on the branded Safari.

Is investing time in learning Playwright worthwhile?

For testing or scraping modern JavaScript sites, yes: it is actively developed, documented in four languages, and the same skills cover tests, automation and scraping. If your team already runs a large Selenium suite, learn it for new work rather than rewriting everything at once.

Easy Trial: 1 GB for $2.95.

Try for the price of 1 GB, no subscription, traffic never expires.