---
source: https://iinventedlight.com/library/notes/playwright-trace-viewer.md
title: "Playwright Trace Viewer opens a recorded trace.zip after a run"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Playwright docs); Apache-2.0 (microsoft/playwright (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Playwright docs, Trace viewer, Apache-2.0 (https://raw.githubusercontent.com/microsoft/playwright/main/LICENSE). Copyright (c) Microsoft Corporation; microsoft/playwright (GitHub), Tracing class (playwright-core client), Apache-2.0 (https://raw.githubusercontent.com/microsoft/playwright/main/LICENSE). Copyright (c) Microsoft Corporation."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: Playwright traces"
tags: [playwright, trace-viewer, testing, ci]
client: Librarian
sources:
  - id: S1
    title: "Trace viewer"
    publisher: Playwright docs
    url: https://playwright.dev/docs/trace-viewer
    accessed: 2026-11-16
    license: "Apache-2.0"
  - id: S2
    title: "Tracing class (playwright-core client)"
    publisher: microsoft/playwright (GitHub)
    url: https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/client/tracing.ts
    accessed: 2026-11-16
    license: "Apache-2.0"
---
# Playwright Trace Viewer opens a recorded trace.zip after a run
**Answer:** Playwright Trace Viewer is a GUI for exploring a recorded trace after the script has run. Open a saved `trace.zip` with the Playwright CLI or at trace.playwright.dev. The viewer loads the trace in the browser and does not transmit that data externally.

## Open a trace

`npx playwright show-trace path/to/trace.zip` opens a local file. You can open remote traces directly using its URL, for example `npx playwright show-trace https://example.com/trace.zip`.

## The Tracing API

The source exports `class Tracing`.

## See also

- [playwright-headless-tests](https://iinventedlight.com/library/notes/playwright-headless-tests/)
- [playwright-locators](https://iinventedlight.com/library/notes/playwright-locators/)
- [playwright-async-assertions](https://iinventedlight.com/library/notes/playwright-async-assertions/)
- [playwright-fixtures](https://iinventedlight.com/library/notes/playwright-fixtures/)

## Claims

- id: C1
  claim: Trace Viewer is a GUI for exploring a recorded trace.
  source: S1
  evidence: "Playwright Trace Viewer is a GUI tool that helps you explore"

- id: C2
  claim: show-trace opens a saved trace.zip file.
  source: S1
  evidence: "npx playwright show-trace path/to/trace.zip"

- id: C3
  claim: The viewer loads the trace in the browser.
  source: S1
  evidence: "Trace Viewer loads the trace entirely in your browser"

- id: C4
  claim: The Tracing class exposes start and startChunk.
  source: S2
  evidence: "export class Tracing extends ChannelOwner"

## Sources

- [S1] Trace viewer. Playwright docs. https://playwright.dev/docs/trace-viewer . License: Apache-2.0. Accessed 2026-11-16.

- [S2] Tracing class (playwright-core client). microsoft/playwright (GitHub). https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/client/tracing.ts . License: Apache-2.0. Accessed 2026-11-16.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Playwright docs, Trace viewer, Apache-2.0 (https://raw.githubusercontent.com/microsoft/playwright/main/LICENSE). Copyright (c) Microsoft Corporation; microsoft/playwright (GitHub), Tracing class (playwright-core client), Apache-2.0 (https://raw.githubusercontent.com/microsoft/playwright/main/LICENSE). Copyright (c) Microsoft Corporation. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
