Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Number To Word (FieldFormatter)

3 sites Security covered Drupal 10–11
View on drupal.org

This module provides a field formatter to display numeric field values as words, supporting integers, decimals, and floats in multiple languages. It offers configuration options for prefixes, suffixes, capitalization, and decimal separators, making it useful for various display needs like currency or accessibility.

Number to Word

Description:

Provides a field formatter that converts numeric field values into their word representation. Works with integer, decimal, and float fields using the Composer-based kwn/number-to-words library.

Key Features

  • Converts numeric values to words automatically on display
  • Supports integer, decimal, and float fields
  • Multiple language/locales supported (30+)
  • Prefix and suffix text for contextual display
  • Optional thousand separator for English numbers
  • Decimal separator word (e.g., "point", "and")
  • Option to capitalize the first letter of the output
  • Fully compatible with Drupal 11 and PHP 8.4

Use Cases

  • Displaying currency amounts in words (invoices, checks)
  • Accessibility improvements for screen readers
  • Educational content or numeric exercises
  • Legal or formal document generation

Installation

Via Composer (Drupal.org release):

composer require drupal/numbertoword
drush en numbertoword

Manual / Local Development:

  1. Place module in web/modules/custom/numbertoword
  2. Install dependency: composer require kwn/number-to-words
  3. Enable module: drush en numbertoword

Configuration

  1. Navigate to Structure → Content types → [Your Content Type] → Manage Display
  2. Select your numeric field and set numbertoWord as the formatter
  3. Click the gear icon to configure settings:
Setting Description Prefix Text displayed before the number words Suffix Text displayed after the number words Thousand separator Character inserted between word groups (English only) Decimal separator word Word between integer and decimal part Language Locale/language for number conversion Capitalize first letter Capitalize the first character

Click Update then Save

Usage

Once configured, numeric fields will display numbers as words automatically.

Input Settings Output 12345 default twelve thousand three hundred forty-five 12345.67 decimal separator: "point" twelve thousand three hundred forty-five point six seven 1500 Prefix: "USD", Suffix: "only" USD one thousand five hundred only 42 Capitalize first letter: yes Forty-two 1234567 Thousand separator: comma one million, two hundred thirty-four thousand, five hundred sixty-seven

Languages supported: English, Albanian, Arabic, Azerbaijani, Bulgarian, Czech, Danish, Dutch, Estonian, French, German, Georgian, Hungarian, Indonesian, Italian, Latvian, Lithuanian, Malay, Persian, Polish, Portuguese (Brazil), Romanian, Russian, Slovak, Spanish, Swedish, Turkish, Turkmen, Ukrainian, Yoruba

Troubleshooting

  • Formatter doesn’t appear: Ensure module is enabled and cache cleared (drush cr)
  • NumberToWords library not found: Run composer require kwn/number-to-words
  • Decimal numbers incorrect: Check decimal separator word and ensure numeric input
  • Language fallback: If selected language fails, English will be used

Depends on

Dependencies of the latest stable release

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jan 2026
Latest release
1 month ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.3 Stable 10–11 Jul 15, 2026
1.0.2 Stable 10–11 Jan 18, 2026
1.0.x-dev Dev 10–11 Jan 18, 2026
1.0.1 Stable 10–11 Jan 18, 2026