Google says "Text too small to read", but no info about recommended font size?
Decoding Google's "Text Too Small to Read": A Developer's Guide to Typography and Responsiveness Dealing with automated feedback from search engines,...
Decoding Google's "Text Too Small to Read": A Developer's Guide to Typography and Responsiveness
Dealing with automated feedback from search engines, especially when the error seems context-dependent, can be frustrating. When you encounter a "Text too small to read" warning from Google Webmaster Tools (or similar tools), it often signals an issue with user experience (UX) rather than a strict, universal font size mandate. As developers, our job is not just to display text, but to ensure that the presentation is legible across all devices and contexts.
The scenario you described—where your main page looks fine, but specific category pages trigger errors—is extremely common. This usually points toward differences in viewport width, line height, or the way content wraps on smaller screens, rather than a simple discrepancy in the font-size declaration itself.
Understanding Google’s Readability Metrics
Google's algorithms assess page quality based on hundreds of signals, including Core Web Vitals, mobile-friendliness, and overall content readability. They don't typically enforce a single pixel value for minimum font size across the entire web. Instead, they evaluate whether the text can be comfortably consumed by a typical user on their device.
The error often surfaces when: 1. Line Length: If lines of text are too long or too narrow, readability suffers significantly. 2. Line Height (Leading): Insufficient vertical spacing between lines causes text to visually merge and become difficult to track. 3. Viewport Constraints: The calculated font size might be acceptable for a desktop monitor but becomes unreadable when constrained by a small mobile viewport width.
For example, if your main page uses a large base font size (e.g., 18px), but a category archive page forces that text onto a very narrow column where the line length is severely truncated, Google flags it as an accessibility concern.
Best Practices for Responsive Typography
The solution lies in moving away from fixed pixel sizes and embracing relative units and responsive design principles. Relying on CSS techniques ensures that your typography scales gracefully with the user's device.
Utilizing Relative Units and Media Queries
Instead of setting a static font-size, use relative units like rem or em for better scalability, and use @media queries to adjust sizing based on screen size. This approach is fundamental to creating truly accessible websites.
Here is an example demonstrating how you might implement responsive typography:
/* Base font size for readability on larger screens */
body {
font-size: 16px; /* Base for accessibility */
}
/* Adjustments for smaller mobile screens */
@media (max-width: 600px) {
body {
font-size: 15px; /* Slightly smaller, but still readable */
}
h1 {
font-size: 24px;
}
}
/* Ensuring proper line height for comfort */
p {
line-height: 1.6; /* Recommended minimum line height for comfortable reading */
}
Notice how we set a baseline and then use media queries to make minor, context-aware adjustments. This ensures that the text remains legible regardless of the screen size, which directly addresses the underlying intent of Google’s warning. When building robust systems like those found in modern frameworks—for instance, when managing complex data presentation within a Laravel application—adhering to these front-end principles is crucial for creating high-quality interfaces.
Beyond Font Size: Enhancing Contextual Reports
If you continue to face ambiguity, focus on utilizing tools that provide deeper diagnostic reports than simple error flags. Tools focused on Accessibility (like Lighthouse audits) often provide much more granular feedback on contrast ratios and text sizing issues than basic SEO checkers alone. Furthermore, ensuring high-contrast settings are used is a non-negotiable part of good design. By focusing on the relationship between the container width, the font size, and the line height, you address the actual problem that causes poor readability, leading to better scores overall.
Stefan
SEO engineer and Laravel developer. Building tools to help Laravel applications rank higher in search results.