Capitalize Words in a String
Capitalize words in a string online with 10+ case modes: Title Case, Sentence Case, UPPER, lower, camelCase, PascalCase, snake_case, and more.
About
Incorrect capitalization degrades readability, breaks code conventions, and signals unprofessionalism in published content. Title Case alone has multiple competing standards (AP, APA, Chicago) that disagree on whether words like "with" or "between" should be lowercased. This tool applies rule-based capitalization across 10 distinct modes, including developer-oriented transforms like camelCase, PascalCase, snake_case, and kebab-case. The Title Case algorithm lowercases English minor words (articles, short prepositions, coordinating conjunctions) unless they appear at the start of the string, following a simplified AP Stylebook heuristic.
Limitations: the tool operates on Unicode Basic Latin and common extended characters. It does not perform natural-language parsing, so proper nouns inside sentences are not auto-detected in Sentence Case mode. For programmatic identifiers, non-alphanumeric characters are stripped during conversion to camelCase and PascalCase. Pro tip: paste your headline, cycle through Title Case and Sentence Case, then compare which reads better for your audience before committing.
Formulas
Each mode applies a deterministic character-level transformation. The core operation for basic capitalization is a character code shift:
Where c is the input character. The offset 32 is the distance between lowercase and uppercase ASCII Latin letters (97 for "a", 65 for 'A'). For Smart Title Case, a set M of minor words is defined:
A word wi is lowercased when wi β M β§ i β 0. For developer cases, words are first extracted by splitting on non-alphanumeric boundaries, then joined with the target delimiter (_ for snake, - for kebab, empty string for camel/Pascal).
Reference Data
| Mode | Input Example | Output Example | Use Case |
|---|---|---|---|
| Title Case | the quick brown fox | The Quick Brown Fox | Headlines, Book Titles |
| Sentence case | hello world. goodbye world. | Hello world. Goodbye world. | Body text, Paragraphs |
| UPPER CASE | hello world | HELLO WORLD | Acronyms, Emphasis |
| lower case | Hello World | hello world | Normalization, Search keys |
| camelCase | get user name | getUserName | JavaScript variables |
| PascalCase | get user name | GetUserName | Class names, C# methods |
| snake_case | Get User Name | get_user_name | Python, Ruby, SQL columns |
| kebab-case | Get User Name | get-user-name | CSS classes, URL slugs |
| tOGGLE cASE | Hello World | hELLO wORLD | Stylistic, Memes |
| aLtErNaTiNg | hello world | hElLo WoRlD | Sarcasm text, Mocking |
| CONSTANT_CASE | max retry count | MAX_RETRY_COUNT | Constants in code |
| dot.case | Get User Name | get.user.name | Object paths, Config keys |
| Capitalize First | hello world | Hello world | Form fields, Labels |
| Smart Title Case | war of the worlds | War of the Worlds | AP/Chicago-style titles |