Skip to content
CodeKruPro

Online Playwright JavaScript Compiler

About this tool

About this Playwright JavaScript compiler

This free online Playwright JavaScript compiler runs your script against a real Chromium browser on our servers. Write JavaScript, click Run, and the console shows the output as it runs. You do not need to install Node.js, Playwright or its browsers.

  • Node.js 24CommonJS script
  • Playwright 1.58.0for JavaScript
  • Chromiumheadless, on our servers
  • Freeno sign-up to run

How to run Playwright JavaScript online

  1. Load Playwright with require('playwright'). The starter code is a working example.
  2. Start the browser with chromium.launch() inside an async function. It launches headless Chromium for you.
  3. Click Run. The script runs as main.js with Node.js in its own container.
  4. Read the output and errors in the console. Sign in to save a script or share a link.

What's installed

  • Node.js 24
  • playwright and @playwright/test 1.58.0
  • Chromium, ready to launch
  • Internet access, so your script can open any public website

Limits

  • The browser runs headless. You see console output, not a browser window.
  • The code runs as a plain script with node main.js, not through the npx playwright test runner.
  • Each run gets 1 CPU and 2 GB of memory. Code can be up to 100,000 characters.
  • You can run up to 20 scripts a minute.

Frequently asked questions

Is the Playwright JavaScript compiler free?

Yes. Running code is free and needs no account. Saving and sharing scripts needs a free sign-in.

Do I need to install Playwright browsers?

No. Chromium is already installed in the container, so launch() works without npx playwright install.

Can I use test() and expect()?

The script runs with plain Node.js, so the test runner does not start. Use page methods and console.log to check results, as in the starter code.