Text Case Converter
Convert text between 12 case formats: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, and aLtErNaTiNg CaSe. Live preview of all conversions simultaneously, one-click convert buttons, character/word/line count, and copy any result instantly.
Works OfflineDark ModeNo Ads
Enter Text
0 characters0 without spaces0 words0 lines
Convert
Click a button above to replace the input with the converted text, or copy any result below.
Case Types Explained
- UPPERCASE / lowercase: Converts every letter.
- Title Case: Capitalise major words (articles & prepositions stay lowercase).
- Sentence case: First letter of each sentence capitalised.
- camelCase: First word lowercase, subsequent words capitalised β common for JavaScript variables.
- PascalCase: Every word capitalised, no separators β common for class names.
- snake_case: Words separated by underscores β popular in Python, databases, and Ruby.
- kebab-case: Words separated by hyphens β URLs and CSS classes.
- CONSTANT_CASE: Uppercase with underscores β used for constants and environment variables.
- dot.case: Words separated by dots β file extensions, Java packages.
- path/case: Words separated by slashes β file paths and URLs.
- aLtErNaTiNg CaSe: Letters alternate between lower and upper β mostly used for humor or emphasis.
How to Use
- Enter your value in the input field
- Click the Calculate/Convert button
- Copy the result to your clipboard
Frequently Asked Questions
- What is a text case converter?
- A text case converter is an online tool that transforms text between different letter-casing formats such as UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more. It saves time when reformatting code identifiers, headings, or file names.
- What is the difference between camelCase and PascalCase?
- In camelCase, the first word starts with a lowercase letter and each subsequent word is capitalized (e.g., myVariableName). In PascalCase (also called UpperCamelCase), every word including the first starts with an uppercase letter (e.g., MyVariableName). camelCase is common for JavaScript/TypeScript variables; PascalCase is typically used for class and component names.
- When should I use snake_case vs kebab-case?
- Use snake_case (words_separated_by_underscores) in Python, Ruby, database column names, and environment variables. Use kebab-case (words-separated-by-hyphens) for URLs, CSS class names, and HTML attributes. Both improve readability over a single long word.
- What is CONSTANT_CASE used for?
- CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) uses all uppercase letters with underscores between words. It is the standard convention for defining constants and environment variables in most programming languages, e.g., MAX_RETRY_COUNT or API_BASE_URL.
- What is Title Case and how does it differ from Sentence case?
- Title Case capitalizes the first letter of each major word while keeping minor words (a, an, the, in, on, etc.) lowercase unless they start the title. Sentence case only capitalizes the first letter of each sentence, like normal prose. Use Title Case for headings and Sentence case for regular text.
- How does the alternating case conversion work?
- Alternating case (aLtErNaTiNg CaSe) toggles each letter between lowercase and uppercase, producing a sarcastic or humorous style popular in internet culture. Non-letter characters are left unchanged and do not affect the alternation pattern.