Free online tools to generate, calculate,
convert, format, encode, and play.
 

Mobile vs Desktop Usage

Track mobile, tablet, and desktop visitor breakdown on your website. Simulate traffic and generate a lightweight tracking snippet.


Your Current Device

Device Type
--
Screen Size
--
Browser
--
OS
--
Viewport
--
Pixel Ratio
--
Touch Support
--
Pointer Type
--

Usage Dashboard (Simulated)

Simulate visitor sessions to see how the tracking dashboard would look on your website. Your current device is recorded as the first session.

Device Breakdown 0 sessions
Mobile 0% Tablet 0% Desktop 0%
0
Mobile
0
Tablet
0
Desktop
Screen Width Distribution
Browser Distribution
Recent Sessions Newest first
#DeviceScreenBrowserOS

Tracking Snippet Generator

Generate a lightweight JavaScript snippet to collect device usage data from your website visitors. All data stays in localStorage on each visitor's browser.

Storage key
localStorage key for storing session data
Track screen size
Record screen width and height
Track browser
Record browser name
Callback function
Called with session data on each page load
Max stored sessions
Limit localStorage entries to prevent bloat

How It Works

This tool detects your current device characteristics and lets you simulate a visitor dashboard showing mobile vs desktop vs tablet breakdown. The generated tracking snippet can be added to any website to collect real device usage data.

Device Detection
  • Touch + pointer — checks navigator.maxTouchPoints and the CSS pointer: coarse media query to identify touch devices
  • Screen size — uses screen.width thresholds: under 768px is mobile, 768-1024px is tablet, above 1024px is desktop
  • User agent — pattern matching for known mobile and tablet identifiers as a secondary signal
  • Pixel ratio — devicePixelRatio provides additional context on display density
Dashboard Metrics
  • Device breakdown — stacked bar showing mobile, tablet, and desktop proportions
  • Screen width distribution — groups visitors into common breakpoint ranges
  • Browser distribution — counts by browser name for compatibility planning
Tracking Snippet
  • Zero dependencies — pure JavaScript, under 1KB minified
  • Privacy-friendly — data stays in each visitor's localStorage; no data is sent to external servers
  • Configurable — choose which fields to track and set a storage limit to prevent bloat
  • Callback API — your custom function receives the session object on each page load for integration with your analytics
Use Cases
  • Responsive design — understand your actual audience device split to prioritize mobile or desktop optimization
  • Browser support — decide which browsers to support based on real visitor data
  • Performance budgets — tailor asset sizes and loading strategies to your dominant device type

Embed This Util

You can embed this util on your own site as a widget. Adding ?embed=1 to the URL loads a compact version with just the tool itself; no header, menu, or documentation. Paste this snippet into your HTML:


    

Copy snippet Adjust the height to taste.



Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with