Catch Visual UI Bugs with SmartUI Visual Testing

Catch Layout, CSS, and Rendering Bugs across Browsers and Real Devices. Visual AI Filters Out Pixel Noise.

Try SmartUI free

PerfectPixel: How to Check a Build Against Its Design, and When to Automate It

Part of: Visual Testing Tool

How to use the PerfectPixel extension to overlay a design on a live page, what the free and Pro plans include, and how to automate the check from Figma.

Published

Summarise with AI

PerfectPixel is a browser extension which overlays a semi-transparent design image over a live web page so you can see where the build has drifted from the mockup. It's available for Chrome, Edge and Firefox, and the free plan allows two layers per domain. It's a manual check in that nothing is recorded, and nothing runs in CI.

TL;DR

PerfectPixel is a free pixel perfect extension from WellDoneCode that overlays a semi-transparent design image on a live web page, so you can see where the build drifts from the mockup. Use the PerfectPixel Chrome extension or the PerfectPixel Firefox add-on while you build a page, and TestMu AI's SmartUI Figma-Web CLI to automate the comparison once it ships.

PerfectPixel Facts as Listed on December 4, 2026

  • Chrome Web Store: "PerfectPixel by WellDoneCode (pixel perfect)", version 3.2.1.1, updated November 26, 2026, about 300,000 users, 3.2/5 from 642 ratings (checked December 4, 2026)
  • Firefox Add-ons: Same developer (WELLDONECODE), version 3.2.1.1, 4.7/5 from 31 reviews
  • Edge: Linked from the developer's site as an Edge Add-ons listing
  • Free plan: Two layers at a time per domain
  • Pro plan (in-app purchase): Unlimited layers, folders, layer rotation, dark theme, custom icon, accent color and CSS
  • Where layers live: Stored locally; the developer's site says image contents are never uploaded

Manual Overlay vs Automated Figma Comparison

  • PerfectPixel (manual overlay): As a pixel perfect Chrome extension, PerfectPixel is a manual check in the one browser it runs in: a person judges each mismatch, and nothing is saved as a baseline. Runs in CI: no. Keeps an approval trail: no.
  • SmartUI Figma-Web CLI (automated comparison): TestMu AI's SmartUI Figma-Web CLI uploads Figma frames as a baseline and compares page screenshots against them in the browsers you list, matching by screenshot name, browser and viewport, with mismatches reviewed in the SmartUI dashboard. Runs in CI: yes.

What Is PerfectPixel?

PerfectPixel by WellDoneCode is a free browser extension for design-to-code comparison. You drop a mockup (PNG, JPG or SVG) onto the page, reduce its opacity or change its blend mode and line it up with the actual elements underneath. Front-end devs use it prior to handing the page over to QA, and QA use it to check spacing, alignment and type against the design.

PerfectPixel does the first design review of a page. Keeping that page in line with its design through subsequent releases is the remit of visual regression testing, which involves taking a screenshot of the page on each build and comparing it against an approved baseline.

How Do You Use PerfectPixel to Compare a Design With a Live Page?

Use PerfectPixel in six steps. The order is important as most of the 'it doesn't line up' issues are down to a width or pixel density mismatch rather than anything to do with the CSS.

  • Export the frame at the width you're going to test. In Figma, export the frame as a PNG. If you're working with a screen that has a device pixel ratio of 2 and you're exporting at 2x, then you'll need to use PerfectPixel's HiDPI scale control.
  • Set the page to the same width. Open DevTools device mode and enter the frame width (e.g. 1440). PerfectPixel can then be moved into the browser side panel whilst device mode is active.
  • Add the layer. You can drag the file onto the extension panel, paste a frame that you've copied from Figma or load an image URL. Layers are saved per domain and will come back in subsequent sessions.
  • Switch the blend mode to Difference. Matching pixels go dark, and the mismatches light up, which is faster than just squinting at 50% opacity. Multiply and Overlay are useful when you're looking at the color and tone.
  • Anchor the layer. Use the arrow keys to move it 1px at a time (Shift + arrow for 10px) until a fixed element (e.g. the logo or the first heading) is lined up. Anchor on one element and then everything else is judged relative to that.
  • Lock it and inspect. Lock the overlay so that the clicks pass through to the page; then in DevTools inspect the misaligned element and tweak the CSS live until the difference is gone.
PerfectPixel extension overlaying a design image on a live web page at 50 percent opacityPerfectPixel Difference blend mode highlighting a button that is 8 pixels lower than the design

The Overlay Pass: A Six-Point Checklist for Manual Design QA

Write down each result per page, because the extension keeps no record:

  • Width matches Figma frame width exactly.
  • Pixel density matches (1x export at DPR 1, or the HiDPI scale control for 2x exports).
  • One anchor element is aligned prior to anything else being assessed.
  • Difference mode was used for spacing and positioning; Multiply or Overlay for color.
  • Every mismatch is logged with the element, the expected value and the actual value.
  • Dynamic content is frozen (same text, images and logged-in state as the mockup) prior to comparison.
Note

Note: Do this on every browser your users have, automatically. SmartUI from TestMu AI has a Figma-Web CLI which uploads your Figma frames as the baseline and then compares the actual screenshots of the page against them in the browsers you specify (Chrome, Firefox, Safari and Edge). Start free with SmartUI.

Is There a Firefox Version of PerfectPixel?

Yes. PerfectPixel by WellDoneCode is on the Firefox Add-ons site as well as the Chrome Web Store and the Edge Add-ons site. The Firefox version is released separately. On 4th December 2026, Firefox and Chrome both had version 3.2.1.1 listed.

Be sure to check the developer is WELLDONECODE as there is a lookalike add-on called "PerfectPixel PM" which also comes up in Google searches for "perfectpixel".

Does PerfectPixel Work With Figma?

PerfectPixel works via copy and paste from Figma, not via an integration. The developer's site does list copy and paste of a frame from Figma as one method of inserting a layer (no mention of a Figma API connection), so the overlay is only as up to date as the image you've pasted. If the design changes, you simply paste the frame again.

What Are the Limits of Manual Overlay Tools Such as PerfectPixel?

Manual overlay tools are good at one page, one browser and one person. The limitations become apparent the moment you get into a team environment or start to think in terms of a release cadence:

  • One browser at a time. You compare in the browser that the extension runs in. A Safari-only layout bug requires a separate check on a Mac.
  • Your eyes are the test. Difference mode will show you the mismatches, but the call as to which ones actually matter is a judgment call which no-one ever records.
  • No history. There is no baseline, no approval trail and no "what changed since last release" view.
  • Free plan limit. Two layers at a time per domain on the free plan. Folders and unlimited layers require Pro.
  • Copy-paste design sync. A pasted frame won't update when the designer goes and edits in Figma.
  • No CI. Nothing's on a pull request, so drift is only ever going to be discovered when someone happens to look.

None of this makes PerfectPixel the wrong tool. It's by far the quickest way to fix a page as you're building it. It's the wrong tool to use to prove that 40 pages still match the design following a dependency upgrade.

PerfectPixel vs an Image Diff vs SmartUI Figma-Web CLI

FeaturePerfectPixelImage Diff (Image Compare)SmartUI Figma-Web CLI
What it isBrowser extension that overlays an image on the live pageIn-browser tool that diffs two imagesCLI that uploads Figma frames as a baseline and compares page screenshots against them
Design sourceUploaded file, pasted Figma frame or image URLAn exported frame PNG you upload or pasteFigma file key + node IDs via the Figma API (FIGMA_TOKEN)
Live page sourceThe page open in your browserA screenshot you takeScreenshots captured by your test script
Browsers checkedThe one the extension runs inWhichever browser you screenshottedThose listed in both config files (chrome, firefox, safari, edge)
ResultWhat the person seesPixel diff, mismatch percentage and a PASS/FAIL badge against a thresholdMismatches reviewed and approved in the SmartUI dashboard
Runs in CINoNoYes (CLI commands)
CostFree (2 layers per domain); Pro is an in-app purchaseFree; processing happens in your browserSmartUI plans; free sign-up available

The Image Compare tool is by far the fastest way to get a figure on one mismatch. Just upload the exported frame and a same-width screenshot, and you can immediately see the % mismatch. There are other overlay tools too.

Pixelay, for instance, pulls frames from a Figma account (according to its maker Hypermatic's own Pixelay vs Perfect Pixel article (September 21, 2025), which refers to PerfectPixel as 'more of a solo tool').

How Do You Automate the Figma to Website Comparison in CI?

TestMu AI SmartUI automates the PerfectPixel check via the Figma-Web CLI. The Figma frames are the baseline; your test script takes the live page, and SmartUI then matches the two up by screenshot name, browser and viewport. The steps below are taken from that doc (updated 25th November 2026).

Prerequisites: a SmartUI project created using the CLI platform (@lambdatest/smartui-cli 4.1.92 or later is required for auto_detect_height), Node.js 20.3+ and four environment variables: PROJECT_TOKEN (from your SmartUI project), FIGMA_TOKEN (a Figma personal access token), LT_USERNAME and LT_ACCESS_KEY.

1. Install the CLI and the Selenium SDK.

npm install @lambdatest/smartui-cli @lambdatest/selenium-driver selenium-webdriver

2. Generate the two config files from the parameters. The script produces designs.json (the Figma side) and web-config.json (the web side) from the environment variables so no file key or node ID is hard-coded.

It generates a single full page frame (auto_detect_height: false) and a width-only viewport which causes SmartUI to compare the frame against a full page screenshot taken at the same width as the frame. As per the doc's tall frame section, the screenshot name (e.g. homepage.png) is the same string in both designs.json and in the capture script.

The sample only checks Chrome. If you want to check other browsers, then just add firefox, safari and/or edge to the browsers in both files as SmartUI matches on name, browser and viewport.

// make-designs.js - FIGMA_FILE_KEY, FIGMA_NODE_ID, SCREEN_NAME (e.g. homepage.png), FRAME_WIDTH
const fs = require('fs');

const required = ['FIGMA_FILE_KEY', 'FIGMA_NODE_ID', 'SCREEN_NAME', 'FRAME_WIDTH'];
const missing = required.filter((name) => !process.env[name]);
if (missing.length) {
  console.error(`Missing: ${missing.join(', ')}`);
  process.exit(1);
}

if (!process.env.SCREEN_NAME.endsWith('.png')) {
  console.error('SCREEN_NAME must end in .png, the same name capture.js will use.');
  process.exit(1);
}

const width = Number(process.env.FRAME_WIDTH);
if (!Number.isInteger(width) || width <= 0) {
  console.error('FRAME_WIDTH must be a positive whole number of pixels.');
  process.exit(1);
}

const designs = {
  web: { browsers: ['chrome'] },
  figma: {
    configs: [
      {
        figma_file_token: process.env.FIGMA_FILE_KEY,
        figma_ids: [process.env.FIGMA_NODE_ID],
        screenshot_names: [process.env.SCREEN_NAME],
        screenshot_viewports: [[width]],
        auto_detect_height: false,
      },
    ],
  },
};

fs.writeFileSync('designs.json', JSON.stringify(designs, null, 2));
fs.writeFileSync('web-config.json', JSON.stringify({ web: { browsers: ['chrome'], viewports: [[width]] } }, null, 2));
console.log(`Wrote designs.json and web-config.json for ${process.env.SCREEN_NAME} at ${width}px`);

figma_file_token is the file key from the Figma URL. Omitting depth will only capture the node IDs that are listed. The doc makes it clear that each additional depth level will result in additional screenshots and additional Figma API calls.

3. Upload the Figma baseline and fail loudly on a rate limit. SmartUI doesn't retry on a Figma HTTP 429. The doc notes the task could still appear to have succeeded, but the output will contain {"error": "Failed to process Web Figma Screenshots"}, and you're to treat that as a failed upload.

With set -euo pipefail, a non-zero exit from the CLI (an invalid config, for example) will terminate the job, and because CLI 4.1.92 exits 0 when a task fails (a bad token, for example), the grep will also fail the job on the CLI's failure text:

set -euo pipefail
npx smartui upload-figma-web designs.json --buildName "figma-baseline" 2>&1 | tee figma-upload.log
if grep -qE "FAILED|Failed to process Web Figma Screenshots" figma-upload.log; then
  echo "Figma baseline upload failed. No Figma screenshots were stored." >&2
  exit 1
fi

This is the doc's documented command. The CLI's built-in help (version 4.1.92) also has an optional --markBaseline flag for upload-figma-web ("Mark the uploaded images as baseline") which the Figma-Web doc doesn't use.

Terminal output where make-designs.js and capture.js reject bad input and the Figma upload step exits 1 on an invalid Figma token

4. Capture the live page with the same name. The docs state that SDK screenshot names must contain .png in order to match up with the Figma screenshots, so the script will not accept a name without it:

// capture.js - usage: node capture.js <pageUrl> <screenshotName.png>
const { Builder } = require('selenium-webdriver');
const { smartuiSnapshot } = require('@lambdatest/selenium-driver');

const [pageUrl, screenshotName] = process.argv.slice(2);
if (!pageUrl || !screenshotName) {
  console.error('Usage: node capture.js <pageUrl> <screenshotName.png>');
  process.exit(1);
}
if (!screenshotName.endsWith('.png')) {
  // SmartUI matches Figma and web screenshots by name, so the web name must include .png.
  console.error(`Screenshot name "${screenshotName}" must end in .png to match the Figma baseline.`);
  process.exit(1);
}

(async () => {
  const driver = await new Builder().forBrowser('chrome').build();
  try {
    await driver.get(pageUrl);
    await smartuiSnapshot(driver, screenshotName);
    console.log(`Captured ${screenshotName} from ${pageUrl}`);
  } finally {
    await driver.quit();
  }
})().catch((err) => {
  console.error(err);
  process.exit(1);
});

Run it through SmartUI with the web config, passing the URL and name as test data:

set -euo pipefail
npx smartui --config web-config.json exec --buildName "web-build" -- node capture.js "$STAGING_URL" "$SCREEN_NAME"

The smartuiSnapshot(driver, name) call and its import are from the SmartUI Selenium JavaScript SDK docs.

5. Review the mismatches. Open the build in the SmartUI dashboard to see the differences against the Figma baseline and either approve or reject them.

What the SmartUI Figma Docs Say Plainly

  • No retry on HTTP 429. It just stops on the first Figma rate limit response.
  • Seat and plan make a difference. Tokens from View and Collab seats and files on Figma's free Starter plan all fall into Figma's lowest rate limit bucket. The docs recommend an Editor seat on a paid plan.
  • Names and viewports must match. If the viewport stored for the Figma frame is different to that in the web screenshot, then the web screenshot will appear as a new screenshot rather than being compared.
  • Browsers in designs.json are purely for comparison. Sites will render differently in each browser, so you may well need separate designs per browser.
  • There's no documented pass/fail exit code for visual mismatches. The Figma-Web and SmartUI CLI documentation both state that you review the mismatches in the dashboard. --fetch-results will save the build results to a JSON file, though the documentation doesn't define the fields in that file, so this guide doesn't gate CI on them.

Which Would You Pick: PerfectPixel or an Automated Figma Comparison?

Use both, at different moments:

StageToolWhy
Building a component or pagePerfectPixelInstant feedback while you edit CSS in DevTools
One mismatch you want measuredImage Compare (free tool)Mismatch percentage for an exported frame vs a screenshot
Design sign-off for a releaseSmartUI Figma-Web CLISame check in several browsers, with a reviewed baseline
Every pull request after sign-offScreenshot baselines in SmartUICatches drift nobody is looking for
Agent-assisted review of a Figma diffSmartUI agent skillSee agentic Figma-to-code visual QA

For the 'every PR' stage, this is a general walkthrough of the SmartUI dashboard and baseline review (not Figma-specific) to show how the approvals work:

Youtube thumbnail

Subscribe to the TestMu AI YouTube channel for more tutorials on testing and automation.

If you'd rather be writing your screenshot tests in code with no Figma in the loop at all, then the BackstopJS guide is the one for you.

Conclusion

Run the Overlay Pass while you build a page: match the frame width, switch to Difference mode, align one anchor element and log every mismatch. Once the page is signed off, move the same check into CI with the Figma-Web CLI, so each build is compared against the Figma baseline in every browser you list.

Don't be staring at the overlays one browser at a time. SmartUI's Figma integration will compare your Figma frames against the live site in the browsers you specify (Chrome, Firefox, Safari, Edge, etc.). Create a free account and upload your first Figma baseline.

Did your last release break the UI? TestMu AI's SmartUI catches visual regressions by comparing every screen to its baseline.

To run your first test, start free, or
for a full walkthrough of the product.

Was this helpful?

Authors

Akshay Verma

Akshay Verma

Author · 5 posts

Akshay Verma is a Senior Product Manager at TestMu AI, where he drives adoption and product-led growth across the testing platform, focusing on onboarding, time-to-value, and unlocking new markets. Earlier in the company he drove the execution of product features that contributed to a 2x revenue-growth trajectory within a year. Before TestMu AI he helped build the Revenue Intelligence product from scratch at Next Quarter, which went on to drive 43% of that company's revenue. Akshay holds a B.Tech in Computer Science from Delhi Technological University.

Sushobhit Dua

Sushobhit Dua

Reviewer

Sushobhit Dua is an Engineering Manager at TestMu AI, leading SmartUI, the visual regression and visual testing product. He manages the team that builds and ships SmartUI and maintains and cuts releases of the open-source SmartUI CLI. He works primarily in Core Java, Spring Boot, and Gradle, and is an AMCAT Certified Software Engineer. He brings over 10 years of software engineering experience, with earlier work as a Software Engineer at ecare Technology Labs. Sushobhit owns the SmartUI roadmap and the engineering decisions behind it.

PerfectPixel FAQs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests