Text Case Converter
Text case conversion is useful for writers, programmers, and anyone working with text. Different contexts require different capitalization styles: titles use Title Case, code uses camelCase or snake_case, URLs use kebab-case, and emphasis or shouting uses UPPERCASE. This converter transforms text between eight common formats: UPPERCASE (all capitals), lowercase (all lowercase), Title Case (first letter of each word capitalized), Sentence case (first letter of the sentence capitalized), camelCase (first word lowercase, subsequent words capitalized, no spaces), PascalCase (all words capitalized, no spaces), snake_case (words separated by underscores, all lowercase), and kebab-case (words separated by hyphens, all lowercase). Paste or type your text in the input field, then choose or click the desired output format. The converter also displays the word count and character count below the input, useful for checking text length. All conversions are instant and happen in your browser, with no data sent to any server.
Text case formats explained
| Format | Example | Common use |
|---|---|---|
| UPPERCASE | THIS IS A TEXT STRING | Emphasis, acronyms, headings |
| lowercase | this is a text string | Code, URLs, standardized text |
| Title Case | This Is A Text String | Book titles, headings |
| Sentence case | This is a text string | Regular sentences, descriptions |
| camelCase | thisIsATextString | Variable names, functions (JS, Java) |
| PascalCase | ThisIsATextString | Class names, constructors |
| snake_case | this_is_a_text_string | Database columns, Python variables |
| kebab-case | this-is-a-text-string | URLs, CSS class names, data attributes |
Text case converter: frequently asked questions
What is Title Case?
Title Case capitalizes the first letter of each word. Articles, prepositions, and conjunctions are usually lowercase unless they are the first word. For example, 'The Quick Brown Fox Jumps Over the Lazy Dog'. This is commonly used for titles of books, articles, and headings.
What is camelCase?
camelCase joins words without spaces, capitalizing the first letter of each word except the first. The first letter is lowercase. For example, 'thisIsATextString'. It is commonly used in programming for variable names and function names in many languages.
What is PascalCase?
PascalCase (also called UpperCamelCase) is similar to camelCase but capitalizes the first letter of the first word as well. For example, 'ThisIsATextString'. It is commonly used for class names and constructors in programming languages like Java and C#.
What is snake_case?
snake_case joins words with underscores and uses lowercase letters. For example, 'this_is_a_text_string'. It is commonly used in programming for variable names, particularly in Python and Ruby, and in database column names.
What is kebab-case?
kebab-case joins words with hyphens and uses lowercase letters. For example, 'this-is-a-text-string'. It is commonly used in URLs, CSS class names, and data attributes in HTML.
Official sources
- Chicago Manual of Style: Official guide to style and usage.
- Python PEP 8: Style Guide for Python Code.
Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology.