The MaxLength module helps authors stay within character limits for titles, text fields, and link fields. It displays a character count to encourage concise content, and can be configured with soft or hard limits.
MaxLength allows a soft or hard character limit to be set on titles, text fields and link fields. A character count displays for authors, helping them write concise content.
About the MaxLength module
About the MaxLength module for Drupal 9/10/11
Maxlength 3.x Actively maintained and supported version for future improvements and new features. Supports CKEditor 5 and Drupal 10 and 11 versions.
Maxlength 2.1.x Maintained only for critical bugs. Supports CKEditor 4, CKEditor 5 and Drupal 9 and 10. Please note that CKEditor 4 reached its end of life! This version of MaxLength is not compatible with Drupal 11 versions. Boasts a more intuitive configuration interface than 1.0, the countdown message displays red when the maximum length is exceeded and short text fields have a soft limit. (read more)
About the MaxLength module for Drupal 7
Maxlength 7.x-3.3 Security fixes only. Less intuitive configuration interface, has several character count bugs.
We strongly encourage upgrading your website from Drupal 7 to Drupal 10.
Helper Module:
MaxLength Auto automatically enables MaxLength on fields with a #maxlength key.
Similar Module:
CKEditor Wordcount provides similar functionality but is only available on fields using CKEditor. Also the character limit is set on the text format rather than the field.
Ask your assistant about MaxLength
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
9 tracked projects depend on this one
- AI Social Posts 134 sites
- Dropsolid Rocketship Paragraphs 52 sites
- Commerce ML Starter 37 sites
- MaxLength Auto 31 sites
- Syncore 3 sites
- DAMopen
- Btester CRM
- Btester Article
- Btester CMS
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 3.2.0 | Stable | 10–11 | Aug 3, 2026 | ||
| 2.1.6 | Stable | 9–10 | Aug 28, 2025 | ||
| 3.1.3 | Stable | 10–11 | Aug 28, 2025 | ||
| 2.1.5 | Stable | 9–10 | Jul 25, 2025 | ||
| 3.1.2 | Stable | 10–11 | Jul 25, 2025 | ||
| 2.1.4 | Stable | 9–10 | Jan 31, 2025 | ||
| 3.1.1 | Stable | 10–11 | Jan 31, 2025 | ||
| 3.1.0 | Stable | 10–11 | Aug 22, 2024 | ||
| 3.0.0 | Stable | 10 | May 29, 2024 | ||
| 2.1.3 | Stable | 9–10 | May 29, 2024 |