DigitHelm

Text Case Converter

Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, or snake_case.

Case Format

The Quick Brown Fox Jumps Over the Lazy Dog

Text Statistics

44

Characters

36

No Spaces

9

Words

1

Sentences

1

Lines

1 / 34

Upper / Lower

Quick Examples

What Is the Text Case Converter?

The Text Case Converter transforms any text into 12 different case formats with a single click. It handles smart word splitting, recognising camelCase, PascalCase, snake_case, kebab-case, and spaces as word separators, so you can convert between any formats seamlessly. Title Case applies Chicago/APA style: minor words (a, an, the, and, but, or, …) remain lowercase unless first or last. Real-time statistics show character count, word count, sentences, lines, and uppercase/lowercase letter counts.

  • 12 case formats: upper, lower, title, sentence, camel, pascal, snake, SCREAMING_SNAKE, kebab, dot, alternating, inverse
  • Smart word splitting: understands camelCase, PascalCase, snake_case, kebab-case input
  • Title Case: minor words (a/an/the/and/…) stay lowercase per editorial style
  • Statistics panel: chars, chars without spaces, words, sentences, lines, upper/lower counts
  • Copy output to clipboard with one click; input/mode saved automatically

Formula

12 Supported Case Formats

UPPER CASE

All characters uppercased

lower case

All characters lowercased

Title Case

Each word capitalised (minor words lowered)

Sentence case

First letter of each sentence capitalised

camelCase

First word lower, subsequent words capitalised

PascalCase

Every word capitalised, no separator

snake_case

Words joined with underscores, lowercase

SCREAMING_SNAKE

snake_case but all uppercase

kebab-case

Words joined with hyphens, lowercase

dot.case

Words joined with dots, lowercase

aLtErNaTiNg

Alternating lower/upper by character position

iNVERSE cASE

Each character case flipped

How to Use

  1. 1Type or paste your text in the Input Text area
  2. 2Select the target case format from the 12 case buttons
  3. 3The converted output appears instantly below
  4. 4Click Copy to copy the result to your clipboard
  5. 5The Statistics panel shows word count, character count, and more
  6. 6Use Quick Examples to load common test strings like camelCase or kebab-case

Example Calculation

Input: “the quick brown fox”

UPPER CASE: THE QUICK BROWN FOX
lower case: the quick brown fox
Title Case: The Quick Brown Fox
Sentence case: The quick brown fox
camelCase: theQuickBrownFox
PascalCase: TheQuickBrownFox
snake_case: the_quick_brown_fox
SCREAMING_SNAKE: THE_QUICK_BROWN_FOX
kebab-case: the-quick-brown-fox
dot.case: the.quick.brown.fox

Title Case minor word handling:

Input: "the lord of the rings: the return of the king"
Output: "The Lord of the Rings: The Return of the King"
(first/last word always capitalised; 'of'/'the' are minor words)

Naming Conventions in Programming

camelCase is standard in JavaScript/Java for variables and functions. PascalCase (UpperCamelCase) is used for class names in most OOP languages. snake_case dominates Python, Ruby, and database column names. SCREAMING_SNAKE_CASE is the universal convention for constants (e.g., MAX_RETRIES, API_BASE_URL). kebab-case is preferred in URLs, CSS class names, and HTML attributes. dot.case appears in Java package names and configuration file keys.

Understanding Text Case Converter

Case Format Quick Reference

FormatExampleSeparatorCommon Use
UPPER CASEHELLO WORLDSpaceHeadings, emphasis
lower casehello worldSpaceGeneric text
Title CaseHello WorldSpaceTitles, headings
Sentence caseHello worldSpaceBody text, UI labels
camelCasehelloWorldNoneJS/Java/C# variables
PascalCaseHelloWorldNoneClass names, components
snake_casehello_worldUnderscorePython, SQL, Ruby
SCREAMING_SNAKEHELLO_WORLDUnderscoreConstants, env vars
kebab-casehello-worldHyphenURLs, CSS, HTML attrs
dot.casehello.worldDotJava packages, config
aLtErNaTiNghElLo WoRlDInternet memes
iNVERSE cASEhELLO wORLDCase toggle utility

Frequently Asked Questions

What is the difference between camelCase and PascalCase?

  • camelCase: variables, functions, JavaScript, Java, C# (myVariable, doSomething)
  • PascalCase: class/component names, React, C#, Java (MyComponent, UserService)
  • Both split on the same word boundaries and remove spaces/underscores
  • Conversion: "user profile page" → camel: userProfilePage, Pascal: UserProfilePage

When should I use snake_case vs kebab-case?

  • snake_case: Python (PEP 8), Ruby, PostgreSQL column names, file names
  • kebab-case: CSS classes, HTML data attributes, URL slugs (/blog/my-first-post)
  • SCREAMING_SNAKE: Python/JS constants, environment variables (MAX_CONNECTIONS)
  • Neither kebab nor snake can have spaces, perfect for machine-readable identifiers

How does Title Case work for minor words?

  • Always capitalised: first word, last word, any word after a colon
  • Minor words (lowercase): a, an, the, and, but, or, nor, for, so, yet, at, by, in, of, on, to, up, as
  • Example: "War and Peace" (and is minor but correct) vs "The Lord of the Rings"
  • Chicago Manual of Style, APA, and AP Style follow this general rule

What is Sentence case?

  • Used for: body text, email subjects (modern style), UI labels, descriptions
  • Contrasts with Title Case (every word): sentence case is preferred in UI/UX design
  • Google Material Design and Apple HIG recommend sentence case for most UI text
  • This converter capitalises after ., !, and ? followed by a space

How does the converter handle input in different existing formats?

  • Splits on: spaces, underscores, hyphens, dots, and camelCase transitions
  • "getUserById" → ["get", "user", "by", "id"]
  • "my-variable-name" → ["my", "variable", "name"]
  • All formats then reassemble with the target case rules applied

What are the alternating and inverse case formats?

  • Alternating: even-indexed chars lowercase, odd-indexed uppercase
  • Inverse: uppercase → lowercase, lowercase → uppercase; non-letters unchanged
  • Popularised by "mocking SpongeBob" meme format (alternating case)
  • Inverse is quick for toggling case when no other method is available

Is this text case converter free?

Yes, completely free with no registration required. All text conversion runs locally in your browser, your text is never sent to any server.

Related Calculators