Animated gif showing how the character count reduces as an author types in the text field.

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

Maxlength 3.x Actively maintained and supported version for future improvements and new features. Supports CKEditor 5 and Drupal 10 versions.

Maxlength 2.1.x Maintained only for critical bugs. Supports CKEditor 4, CKEditor 5 and Drupal 8, 9 and 10. 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)

Maxlength 2.0 Maintained for critical bugs only. Supports CKEditor 4 only. We encourage you to update to MaxLength 2.1

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 9.

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.

Supporting organizations: 
Current maintainers
Ported module to Drupal 8

Project information

Releases