Text Spacing Accessibility Calculator
What this calculator does
Checks whether your CSS text spacing — line height, letter spacing, word spacing, and paragraph spacing — meets the minimums defined by WCAG 2.1 Success Criterion 1.4.12 (Text Spacing, Level AA). This criterion exists because many users with low vision or reading/cognitive disabilities rely on browser extensions or user stylesheets to override a site's text spacing to make content easier to read. A site conforms to 1.4.12 only if no content or functionality is lost when a user applies these more generous spacing values — which in practice means the site's own default spacing should already be at or above these minimums, or at least not break when they're increased.
The four minimums
All four minimums are expressed as a multiple of the element's own font size:
How to use it
- Enter your element's font size in pixels.
- Enter the line height, letter spacing, word spacing, and
paragraph spacing (the space below a paragraph, e.g.
margin-bottom) you're currently using, also in pixels. - Submit to see a pass/fail checklist and a table comparing your values against the minimum required for your font size.
Example
A paragraph styled with font-size: 16px, line-height: 22px,
letter-spacing: 0px, word-spacing: 0px, and margin-bottom: 24px:
This paragraph would need a taller line height, added letter/word spacing, and more space below it to conform to 1.4.12.
Why it matters
WCAG 1.4.12 is a Level AA criterion, meaning most accessibility conformance targets (including the widely-referenced WCAG 2.1 AA baseline) require it. Beyond compliance, generous text spacing genuinely helps readers with dyslexia, low vision, and certain cognitive disabilities track lines of text and distinguish individual words — while rarely hurting readability for anyone else.