Start a project

Tool 108 of 425 · Typography

Line Length Calculator

Converts a target characters-per-line into a max-width for your font, using real measurements.

Line Length Calculator

Your input

Result

LengthWidthemVerdict
CSS

    01

    What it does

    Converts a target characters-per-line into a max-width for your font, using real measurements.

    • Measures your chosen font
    • px, em and ch
    • 45–75 character comparison
    • Ready max-width CSS

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Widths and CSS, with a Copy and a Download button on every result.

    • Line length
    • Typography
    • Readability

    Why it matters

    Lines that are too long make reading tiring; too short and the eye jumps constantly. 45–75 characters is the long-standing guideline.

    The ch unit depends on the font, so this measures it instead of guessing.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Calculate. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Why isn't 66ch exactly 66 characters?

    ch is the width of 0, wider than an average letter, so fewer ch are needed.

    Does WCAG set a limit?

    1.4.8 (AAA) asks for no more than 80 characters.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk