Mobile-Friendly Tester
Paste HTML and run static checks for common mobile-readiness problems — viewport meta, tap target sizes, font sizes, and horizontal-scroll triggers.
Why a Static Mobile Check Still Has Value
Real mobile testing runs the page in a headless browser, measures rendering, and reports layout shift. This tool does not replace that — Lighthouse and Chrome DevTools are still the right call for final verification. What a static checker does well is the catch-it-before-you-deploy pass: spotting a missing viewport meta in a hand-edited template, a 10-pixel font size buried in inline styles, links spaced four pixels apart that would fail Google's tap target rule. Those are template-level bugs that Lighthouse would flag too — but only after you have already loaded the page in a slow simulation. A static check finds them in seconds, in the editor, with no server roundtrip. Use alongside the Core Web Vitals Cheatsheet for the runtime side.
How the Heuristics Score Your HTML
The tool runs four passes over the pasted HTML. Pass one is meta — does the head contain `<meta name='viewport'>` and is its content value a reasonable `width=device-width, initial-scale=1`? Common bugs flagged: missing tag entirely, `initial-scale=1` without `width=device-width`, fixed pixel widths, `user-scalable=no` (which blocks accessibility zoom). Pass two is touch targets — every `<a>` and `<button>` is checked for inline width/height styles below 44 pixels and the surrounding markup is scanned for spacing rules under 8 pixels. Pass three is typography — body text below 14 pixels and explicit `font-size` declarations under that threshold are flagged. Pass four is layout — fixed pixel widths over 360 on top-level containers (the rough minimum mobile viewport) and elements with `overflow: visible` and inline widths exceeding that. Each pass reports as a separate section with line-referenced findings.
Frequently Asked Questions
Does this run a real device emulation?+
No. The tool reads HTML and inline styles statically and applies heuristic thresholds. For true device behavior — JavaScript runtime, dynamic resizing, web font swap — you still want Lighthouse or Chrome DevTools.
What viewport content value should I use?+
`width=device-width, initial-scale=1` is the standard. Avoid `user-scalable=no` and `maximum-scale=1` — both block pinch-to-zoom and fail accessibility audits. Modern responsive design does not need them.
Why is 44 pixels the tap target threshold?+
It is Apple’s Human Interface Guidelines minimum (44 by 44 points) and WCAG 2.2’s Level AAA target size (2.5.5, 44 by 44 CSS pixels). It is not a Google rule: Lighthouse’s tap-targets audit used 48 by 48 px, Material Design recommends 48 dp, and WCAG’s Level AA minimum (2.5.8) is 24 by 24 CSS pixels, or enough spacing around smaller targets. 44 sits between the AA floor and the 48 px design guidance.
My body font is 16 pixels but the tool flags it — why?+
Most likely an inline style or a media query is overriding it at smaller breakpoints. Search the HTML for `font-size:` and check whether any selector applies to body or to the elements being flagged.
Does it handle CSS in external stylesheets?+
Only inline `<style>` blocks and inline `style=` attributes are parsed. External stylesheets are out of scope because the tool does not fetch URLs. Paste the relevant rules inline if you need the check.
What counts as horizontal-scroll risk?+
A top-level element with explicit pixel width above 360 (the smallest mainstream mobile viewport) and an ancestor without `overflow-x: hidden`. The flag is conservative; some valid designs use horizontal scrolling intentionally.
Should every link be 44 pixels tall?+
No. WCAG 2.5.8 exempts links inside a sentence or block of text. This tool only measures links and buttons that set a pixel width or height in their own style attribute, so ordinary text links are not flagged; it cannot see sizes set in stylesheets, which is why a rendered check (Lighthouse, or your browser’s dev tools) is still worth running.
Will my page pass Google's mobile-friendly test if this tool passes?+
Google retired its Mobile-Friendly Test, its API and Search Console’s Mobile Usability report on December 1, 2023 and points site owners to Lighthouse instead. This tool is a fast static pre-flight for template mistakes; run Lighthouse on the rendered page for the final check.
Built by Derek Giordano · Part of Ultimate Design Tools
Privacy Policy · Terms of Service