How to use this tool
- Enter or paste CSS declarations (font-size, line-height, etc.).
- Review pass/fail for each spacing property against WCAG minimums.
- Copy compliant values or adjust until all pass.
About Text Spacing Checker
This tool helps developers verify that text spacing meets WCAG 1.4.12 (Level AA): line-height ≥1.5×, paragraph spacing ≥2×, letter-spacing ≥0.12×, word-spacing ≥0.16× font size. It parses common CSS units and reports guidance.
Common use cases
- Verifying typography meets WCAG text spacing before release
- Auditing design tokens or CSS variables for accessibility
- Checking existing stylesheets for spacing compliance
FAQ
- What does this text spacing checker evaluate?
- It parses font-size, line-height, letter-spacing, and word-spacing from CSS and checks them against WCAG 1.4.12 minimums: line-height ≥1.5×, letter-spacing ≥0.12×, word-spacing ≥0.16× font size.
- Does this tool send my CSS to a server?
- No. All parsing and comparison runs locally in your browser. Your CSS is never sent to a server or stored.
- What CSS units are supported?
- The checker supports px, em, rem, and unitless values. It normalizes to a base font size (16px) when needed. Complex calc() or var() may not parse correctly.
- Why does my line-height show fail?
- WCAG 1.4.12 requires line-height of at least 1.5 times font size. A unitless 1.5 or 24px for 16px font passes; 1.2 or 18px fails.