Skip to main content
Text transformation helpers change the case and format of text strings.

uppercase

Converts text to UPPERCASE.
Output: HELLO WORLD Use cases:
  • Headers and titles
  • Status badges
  • Emphasis text

lowercase

Converts text to lowercase.
Output: hello world Use cases:
  • Email addresses
  • URLs
  • Normalizing user input

capitalize

Capitalizes the first letter, lowercases the rest.
Output: Hello world Use cases:
  • Sentence beginnings
  • Single-word labels

titleCase

Capitalizes the first letter of each word.
Output: Hello World Example Use cases:
  • Names
  • Titles
  • Headings

slugify

Converts text to URL-friendly slug format.
Output: hello-world-this-is-a-test Use cases:
  • URL generation
  • File names
  • Identifiers

camelCase

Converts text to camelCase format.
Output: helloWorldExample Use cases:
  • Variable names
  • JSON keys
  • Programming identifiers

snakeCase

Converts text to snake_case format.
Output: hello_world_example Use cases:
  • Database column names
  • File names
  • API parameters

initials

Extracts the first letter of each word.
Output: JDS Use cases:
  • Avatars
  • Abbreviations
  • Monograms

Combining Text Helpers

Examples

Status Badge

User Avatar