Touch Coordinate Logger
Record detected contact positions.
Tap, click or press Space to keep count.
Tap anywhere inside or press Space
How the Touch Coordinate Logger Works
The Touch Coordinate Logger records the X and Y position of every contact in pixels and lists each position with a timestamp. Positions start from the top-left corner of the surface at (0, 0).
- Tap or drag: Each contact records its X and Y position.
- Choose the coordinate system: Switch between surface, page and screen coordinates.
- Read the log: Each row shows time, pointer ID, X, Y and input type.
- Export the data: Download the log as a comma-separated values (CSV) file.
Touch Coordinate Logger Formula
The Touch Coordinate Logger surface position equals the client position minus the surface's top-left offset.
- clientX, clientY
- Touch position in the browser window
- rect.left, rect.top
- Top-left corner of the surface
Example: A touch at clientX = 260, clientY = 410 on a surface whose corner sits at (20, 150) logs as (240, 260).
Touch Coordinate Logger Reference Table
The Touch Coordinate Logger conversion table converts CSS pixel positions into physical distance from the top-left corner.
| CSS pixels | Millimeters | Centimeters | Inches |
|---|---|---|---|
| 10 | 2.6 | 0.26 | 0.10 |
| 48 | 12.7 | 1.27 | 0.50 |
| 96 | 25.4 | 2.54 | 1.00 |
| 192 | 50.8 | 5.08 | 2.00 |
| 384 | 101.6 | 10.16 | 4.00 |
| 960 | 254.0 | 25.40 | 10.00 |
About the Touch Coordinate Logger
A Touch Coordinate Logger is a data tool that records where each contact lands on the screen. The log forms the base for heatmaps, accuracy tests and path drawings.
Browsers report touch positions in CSS pixels, which are device-independent units of 1/96 inch. A phone with a device pixel ratio of 3 packs 3 physical pixels into each CSS pixel, so the logged values stay comparable across screens.
Ways to Use the Touch Coordinate Logger
The Touch Coordinate Logger has 5 main uses, including UX research and screen calibration checks.
- UX research: Designers see exactly where users tap on a layout.
- Screen calibration checks: Technicians compare tap positions with marked points.
- Game analytics: Developers log where players touch during a level.
- Motor studies: Researchers measure how far taps drift from a target.
- Data export: Analysts load the CSV file into spreadsheets for charts.
Tool Details
- Category
- Touch & Gesture Diagnostics
- Controls
- Taps and keys
- Input Support
- Touch, Pen, Mouse, Keys
- Offline Ready
- On your device