INP Interaction Profiler

Open a trace recorded while clicking and typing, see each interaction split into its three parts, the long tasks around it and the scripts that used the time.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Record

    Record a trace while clicking and typing on the slow page, then save it.

  2. 2
    Open it

    Drop the file on the page or load the sample trace.

  3. 3
    Find the worst

    Read INP and pick the interaction marked worst.

  4. 4
    Read the split

    Compare input delay, processing and presentation for that interaction.

  5. 5
    Follow the scripts

    Check the long tasks and the script table to find the code to change.

  6. 6
    Model and export

    Enter changed numbers in the manual tab and export the interaction CSV.

About this tool

Interaction to Next Paint measures how quickly a page responds when someone taps, clicks or types. It takes nearly the slowest interaction of a visit, and 200 milliseconds or less is good. Every interaction has three parts. Input delay is the wait before event handlers can start, usually because another task is busy on the main thread. Processing time is the time the handlers themselves run. Presentation delay is the time from the handlers finishing to the next frame being painted, spent on style, layout and paint. This profiler reads the EventTiming events in a Chrome performance trace, groups the pointer, click and key events of each interaction by their interaction id, and keeps the longest one. It then finds every main-thread task over 50 milliseconds that overlaps the interaction and adds up the time spent in function calls, script evaluation, timers and event dispatch, by script URL and function name. The worst interaction is marked, and INP is computed the same way browsers do: the slowest, or for pages with many interactions, ignoring one outlier per 50.

Reading the results

Each interaction appears as a bar sized by its total time and split into the three colours. Select one to see the long tasks around it, the scripts that consumed the time and advice for whichever part is too long. A long input delay points to work that was already running, often third-party scripts or hydration. Long processing points to your own handlers doing too much before the screen updates. A long presentation delay points to big DOM changes and layout.

Without a trace

The Enter interactions tab is a small editor for numbers from the web-vitals attribution build or a monitoring tool. Add rows with input delay, processing and presentation in milliseconds, or import a CSV with those columns, and the tool computes INP, ranks the rows and gives the same advice. Rows are kept with undo, so you can model a fix by lowering one value.

Lighthouse

A Lighthouse timespan report holds INP for the interactions you made and, in some versions, a phase breakdown and script list. The profiler reads whatever of that the report contains.

Limits

Traces only contain the interactions you performed while recording, on your device, so the slowest real-world interaction may be one you did not try. Scripts are attributed by the URL in the trace; bundled code shows the bundle name, not the original file. This tool does not record anything on your site.

Worked example

In the sample trace a click on Add to cart takes 488 ms, rated needs improvement. The click arrived while a 260 ms task from a chat widget's poll function was running, so input delay is 190 ms. The click handler then ran for 190 ms, mostly addToCart in app.js (160 ms inside the event dispatch of 170 ms), and the next frame came 108 ms later. A key press in the search box took 56 ms and is fine. The advice is to move the widget's polling off the busy period, show the cart change before doing analytics work, and yield to the browser between the two steps.

Quick facts

Frequently asked questions

How do I record interactions?

Open the Performance panel, start recording without reload, use the page as a visitor would (open menus, add to cart, type in search), then stop and save the trace.

What is a good INP?

200 ms or less is good, over 500 ms is poor, and values between need improvement, measured at the 75th percentile of real visits.

Why are pointerdown and click one interaction?

They share an interaction id because one tap fires both. INP counts the longest event of the group, which is usually the click.

What is a long task?

Any main-thread task over 50 ms. While it runs, the browser cannot respond to input, so long tasks near an interaction cause input delay.

Can I import my RUM data?

Yes, in the Enter interactions tab. Import a CSV with a name and the three phase columns, one row per interaction.

Is my trace stored?

No. It is parsed in memory in this tab. Only the hand-entered rows are kept in local storage for undo.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages