Line Length Optimizer
Pick a typeface and font size, set a target of characters per line, and the tool gives you a max-width in ch, in rem and as an approximate pixel width. A paragraph beside it is constrained to that width, and you can edit the paragraph to test your own copy. A status line tells you whether the target sits in the commonly recommended 50 to 75 range.
How to set a text measure
- Choose a Typeface from the six system-safe stacks and drag Font size (12 to 28px).
- Set Target characters per line with the slider (35 to 100), or click a preset: 45, 66 or 80.
- Check the Recommended max-width box. It shows the value in
chandrem, plus an approximate pixel width. Click Copy beside the one you want. - Read the note under it: below 50 is choppy, 50 to 75 is ideal, up to 80 is the upper bound, and over 80 is flagged.
- Click into the sample paragraph and paste your own text to see how it breaks at that width.
Why measure matters, and why ch is only an estimate
Robert Bringhurst's often-quoted range for body text is 45 to 75 characters per line, with 66 as the ideal. Past about 75 the eye has more trouble finding the start of the next line, and very short lines break reading rhythm with constant returns. The status line here uses a slightly stricter 50 to 75 band.
The ch unit is the advance width of the zero glyph in the element's font, and zero is usually wider than the average letter. So max-width: 66ch typically fits more than 66 characters of ordinary prose. This tool estimates average letter width on a canvas, and the rem and pixel values come from that estimate, so they are narrower than the ch value and closer to your target count. The Measured readout shows how many average letters fit in the ch column.
The 80-character ceiling comes from WCAG success criterion 1.4.8, which is a Level AAA criterion rather than a baseline requirement. The pixel and rem figures assume a 16px root size and the fonts installed on your device, so fonts you load on a real site will measure a little differently.