Text Case Converter

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

What Is the Text Case Converter?

The Text Case Converter transforms text between all common case formats: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and more. Paste any text and convert it to any format with one click — useful for programming, writing, and data formatting.

Formula

UPPERCASE: all letters capitalized | lowercase: all letters small | Title Case: first letter of each word capitalized | camelCase: first word lower, subsequent words capitalized | snake_case: words joined by underscores

How to Use

Paste or type your text into the input area. Choose the desired output case format from the buttons: UPPER, lower, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, or SCREAMING_SNAKE_CASE. The converted text appears instantly and can be copied.

Example Calculation

'hello world example': → UPPERCASE: HELLO WORLD EXAMPLE → lowercase: hello world example → Title Case: Hello World Example → camelCase: helloWorldExample → PascalCase: HelloWorldExample → snake_case: hello_world_example → kebab-case: hello-world-kebab

Understanding Text Case Converter

Text case conventions carry meaning in programming and data science. Different languages and frameworks have established conventions: Python uses snake_case for variables, PascalCase for classes; JavaScript uses camelCase for variables, PascalCase for classes; CSS uses kebab-case for properties; SQL uses SCREAMING_SNAKE_CASE for constants. Following conventions improves code readability and team consistency.

Beyond programming, case conversion is useful in data cleaning (normalizing inconsistent input), content editing (converting all-caps text from legacy systems), SEO (proper title case for page titles), and generating slugs for URLs from article titles. Many content management systems and databases store text in a specific case format.

The rules for automatic case conversion require careful handling of edge cases: acronyms (URL, HTML, API) that should remain all-caps in appropriate contexts, words with apostrophes (it's, don't), hyphenated words, and leading/trailing whitespace. This converter applies standard rules with sensible handling of common edge cases.

Frequently Asked Questions

What is camelCase used for?

camelCase (lower camelCase) is the standard naming convention for variables and functions in JavaScript, Java, and C#: myVariableName, getUserData. The first letter is lowercase; each subsequent word starts with uppercase.

What is PascalCase vs camelCase?

PascalCase (upper camelCase) capitalizes the first letter of every word: MyClassName, UserController. It is the standard for class names in most languages and for C# methods. camelCase starts lowercase: myMethod.

When is snake_case used?

snake_case uses underscores between words: my_variable_name. Standard in Python (PEP 8) for variables and functions, and in database column names. SCREAMING_SNAKE_CASE (all caps with underscores) is used for constants.

What is kebab-case?

kebab-case uses hyphens between words: my-component-name. Standard for CSS class names, HTML attributes, URL slugs, and file names in web projects.

Is this converter free?

Yes, completely free with no registration required.

Related Tools