Every content page on Nakodo passes a generated test before it can ship. Two of its assertions are about length:
assert.ok(page.metaTitle.length <= MAX_TITLE, `title is ${page.metaTitle.length} chars`); assert.ok(page.metaDescription.length >= 90 && page.metaDescription.length <= MAX_DESCRIPTION, ...); // The layout appends " · Nakodo" (9 characters) to page titles. Titles stay at // 50 so the whole thing clears 60. export const MAX_TITLE = 50; export const MAX_DESCRIPTION = 158; I have written before about what those rules did to 27 new pages and about the fourteen call sites that build the metadata. What I had never done is check the unit. A search result page does not count characters. It lays out a line of text in a font, in a box, and cuts what does not fit. So I measured all 106 live pages in pixels.
Method, and the yardsticks
Titles measured in 20px Arial, descriptions in 14px Arial, using canvas.measureText in the browser, on the strings pulled out of the live HTML of every URL in the sitemap.
const c = document.createElement("canvas").getContext("2d"); c.font = "20px Arial, sans-serif"; c.measureText(title).width; The thresholds I compare against are 600 pixels for a desktop title and 920 for a description. Those are the figures SEO tools have converged on. Google documents neither, and it rewrites titles for a good share of queries anyway, so treat them as a yardstick rather than a spec. The interesting part of this exercise is not whether we are one pixel over somebody's estimate, it is what happens to the ranking of our own pages when you change the unit.
Titles: the rule is doing its job
106 titles, 20px Arial min 139.0px About · Nakodo median 482.9px max 556.6px YouTube influencer marketing for ecommerce brands · Nakodo over 580px 0 over 600px 0 The widest title on the site has 43 pixels of headroom. The 50 character rule plus a 9 character suffix is comfortably inside the pixel budget, and it is inside it for a reason I did not expect: our titles are narrow. Pixels per character run from 8.65 to 9.93, with a median of 9.14. At the median rate, 600 pixels is 66 characters, so the rule we enforce is about seven characters more cautious than it needs to be.
The cost of a character limit is that it treats every character as the same size, and here is what that looks like. Ten of our titles are exactly 59 characters long, which is the ceiling. In pixels they span thirty:
555.5 Product seeding: how to send products to YouTubers · Nakodo 554.0 Disclosing sponsored posts on Instagram and TikTok · Nakodo 547.7 Wedding influencers on Instagram: how to find them · Nakodo 544.0 How to spot fake followers on Instagram and TikTok · Nakodo 537.7 Influencer brief template for YouTube sponsorships · Nakodo 535.8 Influencer search tool: YouTube, Instagram, TikTok · Nakodo 530.6 TikTok food influencers for brands and restaurants · Nakodo 530.4 UGC creators vs influencers: what's the difference · Nakodo 525.8 Instagram travel influencers for hotels and brands · Nakodo 525.4 Affiliate outreach and recruitment email templates · Nakodo Sort all 106 pages by character count, then sort them again by pixel width, and only 11 of them hold the same position in both lists. The two measurements agree on the broad shape and disagree about almost every individual page.
The widest line on the site per character is not a title at all, it is the shortest one. About · Nakodo runs 9.93 pixels a character, because the separator and the brand name are most of it and About has a capital A and a b and a t. Which brings me to the thing I had never costed.
The brand suffix costs 86.7 pixels
" · Nakodo" 86.7px on 96 pages, 86.8px on 9, absent on 1 Nine characters, 86.7 pixels, 14 per cent of a 600 pixel budget, repeated on 105 of 106 pages. The home page is the exception, because its title is written whole and does not take the suffix.
I am not arguing against it. A brand name in the title is how a result stops looking like a scraped page, and 86.7 pixels is cheaper than most ways of achieving that. But it is worth knowing that one eighth of the title budget on this site is spent before anybody writes a word, and that the budget is what it is.
Descriptions: the rule is not doing its job
106 descriptions, 14px Arial min 844.9px 133 chars median 948.7px max 1008.7px 156 chars over 920px 82 over 990px 8 82 of 106 descriptions are wider than the figure. 7 of them sit at exactly 158 characters, the ceiling, because writing to a ceiling is what a ceiling produces.
Then I made the cut concrete. Walking each description character by character and stopping at 920 pixels tells you exactly what a reader would not see:
/guides/youtube-engagement-rate 140 of 156 chars, loses "ersal good rate." /guides/how-to-measure-youtube-sponsorships 143 of 158 chars, loses "etup checklist." /youtubers/home-improvement 142 of 156 chars, loses "s that matter." /for/indie-game-studios 143 of 157 chars, loses "and UK rules." /guides/youtube-sponsorship-brief 145 of 158 chars, loses "late to copy." Every one of those cuts lands in the middle of a word, which is what tells you the sentence was written to a character count. The engagement rate guide ends its description with the clause that answers the question the reader typed, and that clause is the part that goes.
The asymmetry has a dull explanation. 50 plus 9 was chosen against a 60 character convention that happens to be conservative in pixels. 158 was chosen against a 160 character convention that happens to be generous in pixels, because our descriptions are prose with ordinary word lengths at about 6.2 pixels a character. Same kind of rule, same kind of reasoning, opposite outcome, and nothing in the test could tell the difference.
A width table, so the test can do this
measureText needs a browser. Our test suite is tsx --test with no DOM, so the usual answer is "run a headless browser in CI", which for two numbers is a bad trade. The alternative is a width table: measure every character once, then sum.
I built one for printable ASCII plus the few extras our pages use, 98 entries, and checked it against measureText on all 106 real strings:
titles mean error 1.48px max 5.90px descriptions mean error 1.70px max 7.78px The error is kerning, which a per-character sum cannot see. On a 500 pixel string, 1.5 pixels is nothing, and the worst case of 7.78 is still an order of magnitude inside the slack we have.
The table is also a nice object in its own right:
20px Arial @ 20.303 ' 3.818 W 18.877 i 4.443 % 17.783 j 4.443 M 16.660 l 4.443 m 16.660 | 5.195 G 15.557 space 5.557 · 6.660 A capital W is 4.25 times the width of a lowercase l. That ratio is the whole argument against counting characters.
One gap, found by the check rather than by thinking: the table has no entry for é, and two pages need it, the coffee niche page and the local business feature page, both of which say "café". A width table needs an explicit answer for the character it has never seen, and the only safe answer is the widest entry in the table, so an unknown character can never make a string look narrower than it is.
What changes
The character assertions stay. They are fast, they are deterministic, they fail with a readable message, and for titles they are strictly stricter than the pixel budget, which is a fine place for a cheap test to be.
What gets added is a pixel assertion for descriptions, with the table, set to 920 pixels, plus the unknown-character rule above. That will fail for 82 pages the moment it lands, which is the correct outcome for a test that is finally measuring the right thing. Fixing them is not a rewrite: the median description is 948.7 pixels and the budget is 920, so most of them need one shorter clause.
And one thing I will not do is move MAX_TITLE up to 65 just because the pixels allow it. The titles are shorter than they could be, and I have yet to regret writing a shorter one.